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…
- Published
- Updated
- Reserved
- Assigned by
- apache
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.
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)
- 91.9% · top 0.2% of all CVEs (4 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
- Remote code execution
- CWE-611 (opens in a new tab)All about CWE-611 and its CVEs
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)
- 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://trackcve.app/cve/CVE-2017-12629)Record last updated .