Vulnerabilities / CVE-2017-12629

critical

CVE-2017-12629

Solr: Code execution via entity expansion

Published Modified CWE 611
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat. Rated lower by Ubuntu (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.solr:solr-core7.1.0, 6.6.2, 5.5.5
Red Hatlucene, lucene-contrib, lucene-demo and 1 moreno fix listed
debian 11lucene-solr3.6.2+dfsg-11
debian 12lucene-solr3.6.2+dfsg-11
debian 13lucene-solr3.6.2+dfsg-11
debian 14lucene-solr3.6.2+dfsg-11
debian 7lucene-solr3.6.0+dfsg-1+deb7u3
debian 8lucene-solr3.6.2+dfsg-5+deb8u1
debian 9lucene-solr3.6.2+dfsg-10+deb9u1
echolucene-solr3.6.2+dfsg-11
ubuntu 14.04-ESMlucene-solr3.6.2+dfsg-2ubuntu0.1~esm1
ubuntu 16.04lucene-solr3.6.2+dfsg-8ubuntu0.1
Show all 17 entries from 14 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.solr:solr-core7.1.0, 6.6.2, 5.5.5
Red Hatluceneno fix listed
Red Hatlucene-contribno fix listed
Red Hatlucene-demono fix listed
Red Hatlucene-javadocno fix listed
debian 11lucene-solr3.6.2+dfsg-11
debian 12lucene-solr3.6.2+dfsg-11
debian 13lucene-solr3.6.2+dfsg-11
debian 14lucene-solr3.6.2+dfsg-11
debian 7lucene-solr3.6.0+dfsg-1+deb7u3
debian 8lucene-solr3.6.2+dfsg-5+deb8u1
debian 9lucene-solr3.6.2+dfsg-10+deb9u1
echolucene-solr3.6.2+dfsg-11
ubuntu 14.04-ESMlucene-solr3.6.2+dfsg-2ubuntu0.1~esm1
ubuntu 16.04lucene-solr3.6.2+dfsg-8ubuntu0.1
ubuntu 16.04-ESMlucene-solr3.6.2+dfsg-8ubuntu0.1
ubuntu 17.10lucene-solr3.6.2+dfsg-10+deb9u1build0.17.10.1

References

All 39 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.