CVE-2017-12629
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…
- 9.8CriticalCVSS base score
- 92.5%Exploitation in 30 daysEPSS · top 0.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template and an Exploit-DB entry for it. A reference of the record is tagged as an exploit.
Show the exploits3
Nuclei templates1 template
- Apache Solr <= 7.1 - XML Entity Injection (Nuclei template) (opens in a new tab)
http/cves/2017/CVE-2017-12629.yamlSeverity critical
Exploit-DB1 entry
- Apache Solr 7.0.1 - XML External Entity Expansion / Remote Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 43009webapps, xmlpublished 17 Oct 2017Verified
References tagged exploit1 reference
- 43009 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
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
- 2 months later
· 2 months later
Published
- 7 years later
· 7 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 |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 92.5% · top 0.2% of all CVEs (10 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Apache Solr before 7.1 with Apache Lucene before 7.1
- affected Apache Solr before 7.1 with Apache Lucene before 7.1
- unaffected lucene-solr 7.2.0
- unaffected lucene-solr 8.0.0
- affected lucene-solr – < 7.1.0
Apache Solr before 7.1 with Apache Lucene before 7.1
- affected lucene-solr – < 5.3.1-redhat-2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.solr:solr-coreGHSA-mh7g-99w9-xpjm (opens in a new tab)
References
24
- RHSA-2017:3451 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [lucene-dev] 20171012 Re: Several critical vulnerabilities discovered in Apache Solr (XXE & RCE) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- RHSA-2018:0002 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 101261 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- RHSA-2018:0004 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:3452 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [debian-lts-announce] 20180121 [SECURITY] [DLA 1254-1] lucene-solr security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 43009 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- RHSA-2018:0003 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:3123 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:0005 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:3244 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2017:3124 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [www-announce] 20171019 [SECURITY] CVE-2017-12629: Several critical vulnerabilities discovered in Apache Solr (XXE & RCE) (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- DSA-4124 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- USN-4259-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- https://twitter.com/ApacheSolr/status/918731485611401216 (opens in a new tab)x_refsource_MISCx_transferred
- https://twitter.com/searchtools_avi/status/918904813613543424 (opens in a new tab)x_refsource_MISCx_transferred
- http://openwall.com/lists/oss-security/2017/10/13/1 (opens in a new tab)x_refsource_MISCx_transferred
- https://twitter.com/joshbressers/status/919258716297420802 (opens in a new tab)x_refsource_MISCx_transferred
- [solr-users] 20210618 CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [solr-users] 20210618 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [solr-users] 20210728 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [jackrabbit-oak-issues] 20210817 [jira] [Created] (OAK-9537) Security vulnerability in org/apache/lucene/queryparser/xml/CoreParser.java (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
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)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2018-0640 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mh7g-99w9-xpjm (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-2017-12629)Record last updated .