CVE-2017-12629
Remote code execution occurs in Apache Solr
Reported by apache · Published October 14, 2017
solr-core is fixed in 7.1.0, 7.0.1, 6.6.2 and 7 more (Maven Central)
Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 by exploiting XXE in conjunction with use of a Config API add-listener command to reach the RunExecutableListener class. Elasticsearch, although it uses Lucene, is NOT vulnerable to this. Note that the XML external entity expansion vulnerability occurs in the XML Query Parser which is available, by default, for any query request with parameters deftype=xmlparser and can be exploited to upload malicious data to the /upload request handler or as Blind XXE using ftp wrapper in order to read arbitrary local files from the Solr server. Note also that the second vulnerability relates to remote code execution using the RunExecutableListener available on all affected versions of Solr.
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 | 7.1.0, 7.0.1, 6.6.2, 6.6.1, 6.5.1, 6.4.2, 6.2.1, 6.0.1, 5.5.5, 5.5.4 |
| lucene-solr | Ubuntu:Pro:14.04:LTS | 3.6.2+dfsg-2ubuntu0.1~esm1 |
| lucene-solr | Ubuntu:16.04:LTS | 3.6.2+dfsg-8ubuntu0.1 |
| solr | apache | 7.0.1, 6.6.1, 5.5.4 |
| Apache Solr before 7.1 with Apache Lucene before 7.1 | n/a | 7.1.0, 5.3.1-redhat-2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | Apache Solr before 7.1 with Apache Lucene before 7.1 | Apache Solr before 7.1 with Apache Lucene before 7.1, lucene-solr 7.2.0, lucene-solr 8.0.0 |
| n/a | Apache Solr before 7.1 with Apache Lucene before 7.1 | lucene-solr |
| Maven | org.apache.solr:solr-core | 7.0.0, 6.0.0, 6.1.0 |
| n/a | Apache Solr before 7.1 with Apache Lucene before 7.1 | 7.2.0, 8.0.0, * |
Timeline
- Oct 14, 2017 CVE Published
- Oct 18, 2017 PoC Published (2 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (11 in total, the first dated here)
- Mar 5, 2026 Security Advisory (12 in total, the first dated here)
- Oct 3, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-12629
vulnetix vdb fixes CVE-2017-12629
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-2017-12629/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2017:3451 vendor-advisoryx_refsource_REDHAT
- [lucene-dev] 20171012 Re: Several critical vulnerabilities discovered in Apache Solr (XXE & RCE) mailing-listx_refsource_MLIST
- RHSA-2018:0002 vendor-advisoryx_refsource_REDHAT
- 101261 vdb-entryx_refsource_BID
- RHSA-2018:0004 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:3452 vendor-advisoryx_refsource_REDHAT
- [debian-lts-announce] 20180121 [SECURITY] [DLA 1254-1] lucene-solr security update mailing-listx_refsource_MLIST
- 43009 exploitx_refsource_EXPLOIT-DB
- RHSA-2018:0003 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:3123 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:0005 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:3244 vendor-advisoryx_refsource_REDHAT
- RHSA-2017:3124 vendor-advisoryx_refsource_REDHAT
- [www-announce] 20171019 [SECURITY] CVE-2017-12629: Several critical vulnerabilities discovered in Apache Solr (XXE & RCE) mailing-listx_refsource_MLIST
- DSA-4124 vendor-advisoryx_refsource_DEBIAN
- USN-4259-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
…and 7 more