ZeroHour

CVE-2019-17558

KEV PoC ×4large

Remote Code Execution via VelocityResponseWriter plug-in in Apache Solr 5.0–8.3.1

CISA: Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability

CVSS 3.1
7.5 high
EPSS
99%p100
Published
()
KEV added
AI analysis

CVE-2019-17558 is a remote code execution flaw in the VelocityResponseWriter plug-in of Apache Solr 5.0.0 through 8.3.1, caused by improper handling of Velocity template content (CWE-74). An attacker can supply a renderable, potentially malicious Velocity template either from the configset's velocity/ directory or, when a response writer has been configured with params.resource.loader.enabled set to true (which requires Config API access), directly via request parameters; parameter-provided templates are disabled by default and the vulnerable path was removed entirely in Solr 8.4. Successful exploitation allows a remote attacker to execute arbitrary code with the privileges of the Solr process, risking compromise of the host and indexed data. Any Solr deployment running 5.0.0–8.3.1 is affected, and Oracle Primavera Unifier is also impacted because it bundles the affected Solr component. The flaw is under active exploitation: it was added to CISA's Known Exploited Vulnerabilities catalog on 2021-11-03, with EPSS estimating a 98.6% probability of exploitation in the next 30 days.

What to do: Upgrade to Apache Solr 8.4 or later per vendor instructions (CISA's required action). If upgrading is deferred, avoid enabling params.resource.loader.enabled on custom response writers, restrict access to the Solr Config API, limit Solr's network exposure, and review access logs for requests passing velocity template parameters. Oracle Primavera Unifier customers should apply the applicable Oracle Critical Patch Update.

Affected
Apache Solr5.0.0 through 8.3.1; fixed in 8.4 (params resource loader removed; configset template rendering restricted to trusted configsets)
Oracle Primavera Unifier
Estimated exposure
largetens of thousands of internet-exposed Solr instances (≈20,000–30,000 in public scans), with exploitation further limited to instances that enabled the params… — Recurring public internet scans (Shodan/Censys) have consistently shown on the order of tens of thousands of Apache Solr services exposed to the internet, though only those with a custom response writer with…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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).

CISA Known Exploited Vulnerability
Affected
Apache Solr
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
apacheoracle
Products
solr, primavera unifier
Weakness
CWE-74
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news