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…
- Published
- Updated
- Reserved
- Assigned by
- apache
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.
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 (6 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.
Weakness
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 (30)
- [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)
- 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://trackcve.app/cve/CVE-2019-17558)Record last updated .