CVE-2019-17558
Improper Input Validation in Apache Solr
Reported by apache · Published December 30, 2019
solr-core is fixed in 8.4.0 (Maven Central)
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.solr:solr-core | Maven Central | 8.4.0 |
| solr | apache | 8.4.0, 7.7.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Apache Solr | Apache Solr 5.0.0 to Apache Solr 8.3.1 |
| n/a | Apache Solr | 5.0.0 |
| Maven | org.apache.solr:solr-core | 5.0.0, 6.0.0, 7.0.0 |
Timeline
- Dec 30, 2019 CVE Published
- Apr 1, 2020 VulnCheck XDB Entry (3 in total, the first dated here)
- Apr 2, 2020 PoC Published (15 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 3, 2021 CISA KEV Added
- Nov 3, 2021 VulnCheck KEV Exploitation (44 in total, the first dated here)
- Apr 30, 2026 Security Advisory
- Sep 13, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-17558
vulnetix vdb fixes CVE-2019-17558
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-17558/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [lucene-issues] 20200107 [jira] [Commented] (SOLR-13971) CVE-2019-17558: Velocity custom template RCE vulnerability mailing-listx_refsource_MLIST
- [lucene-issues] 20200108 [jira] [Commented] (SOLR-13971) CVE-2019-17558: Velocity custom template RCE vulnerability mailing-listx_refsource_MLIST
- [lucene-issues] 20200108 [jira] [Updated] (SOLR-14025) CVE-2019-17558: Velocity response writer RCE vulnerability persists after 8.3.1 mailing-listx_refsource_MLIST
- [lucene-issues] 20200108 [GitHub] [lucene-solr] Sachpat opened a new pull request #1156: SOLR-13971 mailing-listx_refsource_MLIST
- [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 mailing-listx_refsource_MLIST
- [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 mailing-listx_refsource_MLIST
- [lucene-issues] 20200108 [GitHub] [lucene-solr] Sachpat commented on issue #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability mailing-listx_refsource_MLIST
- [lucene-issues] 20200113 [GitHub] [lucene-solr] Sachpat closed pull request #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability mailing-listx_refsource_MLIST
- [lucene-issues] 20200113 [jira] [Commented] (SOLR-14025) CVE-2019-17558: Velocity response writer RCE vulnerability persists after 8.3.1 mailing-listx_refsource_MLIST
- [lucene-issues] 20200113 [GitHub] [lucene-solr] chatman commented on issue #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability mailing-listx_refsource_MLIST
- [lucene-issues] 20200113 [GitHub] [lucene-solr] Sachpat commented on issue #1156: SOLR-13971: CVE-2019-17558: Velocity custom template RCE vulnerability mailing-listx_refsource_MLIST
- [lucene-dev] 20200213 Re: 7.7.3 bugfix release mailing-listx_refsource_MLIST
- [lucene-dev] 20200214 Re: 7.7.3 bugfix release mailing-listx_refsource_MLIST
- [lucene-issues] 20200219 [jira] [Updated] (SOLR-14025) CVE-2019-17558: Velocity response writer RCE vulnerability persists after 8.3.1 mailing-listx_refsource_MLIST
- [ambari-issues] 20200220 [jira] [Created] (AMBARI-25482) solr dependence CVE-2019-17558 mailing-listx_refsource_MLIST
- [lucene-solr-user] 20200320 CVEs (vulnerabilities) that apply to Solr 8.4.1 mailing-listx_refsource_MLIST
- [lucene-solr-user] 20200320 Re: CVEs (vulnerabilities) that apply to Solr 8.4.1 mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
…and 41 more