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

Weakness classification (CWE)

Public proof-of-concept exploits

References

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.