CVE-2019-17558: Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability
Vulnerability summary
CVE-2019-17558 is a high (CVSS 7.5) Injection vulnerability in Apache Solr. It is known to be exploited: CISA lists it, first on 03-11-2021. EPSS estimates a 98.57% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 7 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 30-12-2019PublishedVulnerability first disclosed.
- 03-11-2021Added to CISA KEVApache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability
- 03-05-2022CISA remediation dueApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
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).
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · MavenEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
98.57%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 98.57% on 19-09-2026
Known exploited
Compare KEV catalogs- Added
- 03-11-2021
- Federal due date
- 03-05-2022
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2019-17558
Public exploits
7 foundExploit Reference (lists.apache.org)
Maturity: unknown
Exploit Reference (lists.apache.org)
Maturity: unknown
Exploit Reference (issues.apache.org)
Maturity: unknown
Show all 7 exploits
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
Apache Solr 8.2.0 - Remote Code Execution
Maturity: poc
Apache Solr - Remote Code Execution via Velocity Template (Metasploit)
Maturity: weaponized
Apache Solr Remote Code Execution via Velocity Template
exploit/multi/http/solr_velocity_rce
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Apache1 product
- solr≥ 5.0.0, < 7.7.3 | ≥ 8.0.0, < 8.4.0
Debian1 product
- lucene-solrAll versions (No fix recorded)
Oracle1 product
- primavera_unifier≥ 17.7, ≤ 17.12 | 16.1 | 16.2 | 18.8 | 19.12
Org.apache.solr1 product
- solr-core≥ 5.0.0, < 8.4.0 | ≥ 6.0.0, < 8.4.0 | ≥ 7.0.0, < 8.4.0 | ≥ 8.0.0, < 8.4.0
4 vendors · 4 products
References
61 linksShow all 61 references
- issues.apache.org/jira/browse/SOLR-13971X Refsource MISCWEBExploitIssue TrackingPatchVendor Advisory
- packetstormsecurity.com/files/157078/Apache-Solr-8.3.0-Velocity-Template-Remote-Code-Execution.htmlX Refsource MISCWEBExploitThird Party AdvisoryVDB Entry
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-17558Government ResourceWEBUS Government Resource