Skip to main content
← All vulnerabilities
CVE-2017-12629GHSA-MH7G-99W9-XPJM

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 A

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.5.5, 5.3.1-redhat-2, 7.1.0, 6.6.2
1 on Exploit-DB, 2 proofs of concept on GitHub, 1 Nuclei template

Summary

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.

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-43009

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a Apache Solr before 7.1 with Apache Lucene before 7.1

    From lucene-solr · fixed in 5.5.5

  • n/a Apache Solr before 7.1 with Apache Lucene before 7.1

    From lucene-solr · fixed in 5.3.1-redhat-2

  • org.apache.solr:solr-coreMaven

    From 7.0.0 · fixed in 7.1.0

  • org.apache.solr:solr-coreMaven

    From 6.0.0 · fixed in 6.6.2

  • org.apache.solr:solr-coreMaven

    From 5.5.0 · fixed in 5.5.5

References 28

access.redhat.com

s.apache.org

securityfocus.com

lists.debian.org

Exploit-DB

mail-archives.us.apache.org

debian.org

usn.ubuntu.com

twitter.com

openwall.com

lists.apache.org

GitHub · projectdiscovery/nuclei-templates

GitHub · CyberCTF/vulhub-solr-cve-2017-12629-rce

GitHub · captain-woof/cve-2017-12629