CVE Catalog

Actively exploited in the wild

Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability

Apache - Solr · Listed in the CISA KEV since 2021-11-03. This indicates confirmed attacks in production environments.

Required action: Apply updates per vendor instructions.

CVE-2019-17558

HighCVSS 7.5KEV
Published: Updated: Translated: NVD NIST

Summary

Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote Code Execution through the VelocityResponseWriter. A Velocity template can be provided through Velocity templates in a configset `velocity/` directory or as a parameter. Parameter-provided templates are disabled by default but can be enabled by setting `params.resource.loader.enabled` to `true`, which requires configuration API access. Solr 8.4 removed the params resource loader entirely and only enables configset-provided template rendering when the configset is `trusted`.

Risk Assessment

An attacker with access to the configuration API could achieve remote code execution on the Solr server, potentially leading to full system compromise and data leakage. The risk is high because Solr often processes data indexed from various sources.

Recommendation

Update Apache Solr to version 8.4 or later, where the params resource loader was removed. If updating is not possible, restrict access to the configuration API and ensure `params.resource.loader.enabled` remains disabled.

Other vulnerabilities in Apache Solr

See all
Original NVD description (English source)

Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote Code Execution through the VelocityResponseWriter. A Velocity template can be provided through Velocity templates in a configset `velocity/` directory or as a parameter. A user defined configset could contain renderable, potentially malicious, templates. Parameter provided templates are disabled by default, but can be enabled by setting `params.resource.loader.enabled` by defining a response writer with that setting set to `true`. Defining a response writer requires configuration API access. Solr 8.4 removed the params resource loader entirely, and only enables the configset-provided template rendering when the configset is `trusted` (has been uploaded by an authenticated user).

Vulnerability data from NVD (NIST) · CISA KEV · EPSS