XXE in Apache Solr
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 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.
Vulnerability class: XXE (XML External Entity)
EPSS: 0.919 (99.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Apache Solr
- Canonical Ubuntu_linux — versions 16.04
- Debian Debian_linux — versions 7.0, 8.0, 9.0
- Redhat Enterprise_linux_server — versions 6.0, 7.0
- Redhat Jboss_enterprise_application_platform — versions 7.0.0, 7.1.0
- N/a Apache Solr Before 7.1 With Lucene — versions lucene-solr 7.2.0, lucene-solr, lucene-solr 8.0.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@apache.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- security@apache.org (Vendor Advisory, mailing-list, x_refsource_MLIST, Exploit, Mailing List)
- security@apache.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- security@apache.org (VDB Entry, Third Party Advisory, vdb-entry, x_refsource_BID)
- security@apache.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- security@apache.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- security@apache.org (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory)
- security@apache.org (Exploit, VDB Entry, Third Party Advisory, exploit, x_refsource_EXPLOIT-DB)
- security@apache.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
- security@apache.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
Frequently asked questions
- What is CVE-2017-12629?
- CVE-2017-12629 is a critical-severity vulnerability in Apache Solr, classified under Improper Restriction of XML External Entity Reference (XXE). CVSS score: 9.8/10. Published 2017-10-14.
- How severe is CVE-2017-12629?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2017-12629 known to be exploited?
- 56 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.