CVE-2019-17558
Apache Solr 5.0.0 to Apache Solr 8.3.1 are vulnerable to a Remote Code Execution through the VelocityResponseWriter. A Velocity template…
- 7.5HighCVSS base score
- 98.6%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 3 Nov 2021
- 4Public exploitsMetasploit, Nuclei and Exploit-DB
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).
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Apache Solr VelocityResponseWriter Plug-In Remote Code Execution Vulnerability.
- Added
- 3 Nov 2021
- Fix due (US federal)
- 3 May 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 3 Nov 2021.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and 2 Exploit-DB entries for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits4
Metasploit modules1 module
- Apache Solr Remote Code Execution via Velocity Template (Metasploit module) (opens in a new tab)
exploit/multi/http/solr_velocity_rceRank excellentdisclosed 29 Oct 2019
Nuclei templates1 template
- Apache Solr <=8.3.1 - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2019/CVE-2019-17558.yamlSeverity high
Exploit-DB2 entries
- Apache Solr - Remote Code Execution via Velocity Template (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 48338remote, multiplepublished 16 Apr 2020Verified
- Apache Solr 8.2.0 - Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 47572webapps, javapublished 1 Nov 2019Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 3 months later
· 3 months later
Published
- 22 months later
· 22 months later
Added to CISA KEV
Known exploited in the wild
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 98.6% · top 0.1% of all CVEs (11 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Apache Solr
- affected Apache Solr 5.0.0 to Apache Solr 8.3.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.solr:solr-coreGHSA-ww97-9w65-2crx (opens in a new tab)
References
References30
- [lucene-issues] 20200107 [jira] [Commented] (SOLR-13971) CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200108 [jira] [Commented] (SOLR-13971) CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200108 [jira] [Updated] (SOLR-14025) CVE-2019-17558: Velocity response writer RCE vulnerability persists after 8.3.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200108 [GitHub] [lucene-solr] Sachpat opened a new pull request #1156: SOLR-13971 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200108 [GitHub] [lucene-solr] Sachpat commented on a change in pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200108 [GitHub] [lucene-solr] artem-smotrakov commented on a change in pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200108 [GitHub] [lucene-solr] Sachpat commented on issue #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200113 [GitHub] [lucene-solr] Sachpat closed pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200113 [jira] [Commented] (SOLR-14025) CVE-2019-17558: Velocity response writer RCE vulnerability persists after 8.3.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200113 [GitHub] [lucene-solr] chatman commented on issue #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200113 [GitHub] [lucene-solr] Sachpat commented on issue #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-dev] 20200213 Re: 7.7.3 bugfix release (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-dev] 20200214 Re: 7.7.3 bugfix release (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20200219 [jira] [Updated] (SOLR-14025) CVE-2019-17558: Velocity response writer RCE vulnerability persists after 8.3.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [ambari-issues] 20200220 [jira] [Created] (AMBARI-25482) solr dependence CVE-2019-17558 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-solr-user] 20200320 CVEs (vulnerabilities) that apply to Solr 8.4.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-solr-user] 20200320 Re: CVEs (vulnerabilities) that apply to Solr 8.4.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpuoct2020.html (opens in a new tab)x_refsource_MISCx_transferred
- https://issues.apache.org/jira/browse/SOLR-13971 (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/157078/Apache-Solr-8.3.0-Velocity-Template-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- [submarine-commits] 20201209 [GitHub] [submarine] QiAnXinCodeSafe opened a new issue #474: There is a vulnerability in Apache Solr 5.5.4,upgrade recommended (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-solr-user] 20210203 Re: SolrCloud keeps crashing (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20210210 [GitHub] [lucene-solr] rhtham edited a comment on pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20210210 [GitHub] [lucene-solr] rhtham commented on pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-solr-user] 20210212 CVE-2019-17558 on SOLR 6.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-solr-user] 20210212 Re: CVE-2019-17558 on SOLR 6.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-solr-user] 20210213 Re: CVE-2019-17558 on SOLR 6.1 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [lucene-issues] 20210315 [GitHub] [lucene-solr] erikhatcher commented on pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [druid-commits] 20210324 [GitHub] [druid] jihoonson opened a new pull request #11030: Suppress cves (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-17558 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2020-0320 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-ww97-9w65-2crx (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-17558)Record last updated .