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)
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.919 (99.8th percentile), scored .
High probability of exploitation in the next 30 days — patch promptly. 100th percentile — 99.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.919 · newest: 0.919 · change: 0.000
Affected products
- Apache Solr
- Canonical Ubuntu Linux — versions 16.04
- Debian Linux — versions 7.0, 8.0, 9.0
- Red Hat Enterprise Linux Server — versions 6.0, 7.0
- Red Hat Jboss Enterprise Application Platform — versions 7.0.0, 7.1.0
- 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
- access.redhat.com/errata/RHSA-2017:3451 (vendor-advisory, Third Party Advisory)
- s.apache.org/FJDl (Vendor Advisory, mailing-list, Exploit, Mailing List)
- access.redhat.com/errata/RHSA-2018:0002 (vendor-advisory, Third Party Advisory)
- www.securityfocus.com/bid/101261 (VDB Entry, Third Party Advisory, vdb-entry)
- access.redhat.com/errata/RHSA-2018:0004 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2017:3452 (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2018/01/msg00028.html (mailing-list, Mailing List, Third Party Advisory)
- www.exploit-db.com/exploits/43009/ (Exploit, VDB Entry, Third Party Advisory, exploit)
- access.redhat.com/errata/RHSA-2018:0003 (vendor-advisory, Third Party Advisory)
- access.redhat.com/errata/RHSA-2017:3123 (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?
- 57 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.