CVE-2017-12629Solr XXE
Remote code execution occurs in Apache Solr
Published Oct 14, 2017 · Updated Oct 24, 2026 · Also known as DEBIAN-CVE-2017-12629, DLA-1254-1, DSA-4124-1, GHSA-mh7g-99w9-xpjm, MGASA-2017-0403, UBUNTU-CVE-2017-12629, USN-4259-1
Key Facts
Patch immediately- CVE-2017-12629 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Solr (Apache), Jboss Enterprise Application Platform (Redhat), Ubuntu Linux (Canonical) and 20 more products.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 92% probability of exploitation in the next 30 days.
- Fixed versions are available, including Solr 5.5.4, Apache Solr before 7.1 with Apache Lucene before 7.1 5.3.1-redhat-2, Apache Solr before 7.1 with Apache Lucene before 7.1 6.6.2.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
92%
Higher than 99.8% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
62/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2017-12629
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2017-12629
- advisoryhttps://ubuntu.com/security/CVE-2017-12629
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2017-12629
- advisoryhttp://mail-archives.apache.org/mod_mbox/lucene-dev/201710.mbox/%3CCAKrJsP=twErMhzf+FtUMOpCk7+r0pK35hAqoqf_ZtvEoshTgjQ@mail.gmail.com%3E
- advisoryRHSA-2020:2561
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 Products
53 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| SolrApache | See advisory | 5.5.4 |
| Jboss Enterprise Application PlatformRedhat | 7.0.0, 7.1.0 | n/a |
| Ubuntu LinuxCanonical | 16.04 | n/a |
| Debian LinuxDebian | 7.0, 8.0, 9.0 | n/a |
| lucene-solrdebian | See advisory | 3.6.2+dfsg-11 |
Patched Releases
Solr
5.5.4
Apache Solr before 7.1 with Apache Lucene before 7.1
5.3.1-redhat-2, 6.6.2, 7.1.0
eap7-activemq-artemis
0:1.1.0-19.SP24_redhat_1.1.ep7.el6, 0:1.1.0-19.SP24_redhat_1.1.ep7.el7
eap7-hibernate
0:5.0.16-1.Final_redhat_1.1.ep7.el6, 0:5.0.16-1.Final_redhat_1.1.ep7.el7
eap7-ironjacamar
0:1.3.8-1.Final_redhat_1.1.ep7.el6, 0:1.3.8-1.Final_redhat_1.1.ep7.el7
eap7-jboss-ec2-eap
0:7.0.9-2.GA_redhat_2.ep7.el6, 0:7.0.9-2.GA_redhat_2.ep7.el7
eap7-jboss-remoting
0:4.0.25-1.Final_redhat_1.1.ep7.el6, 0:4.0.25-1.Final_redhat_1.1.ep7.el7
eap7-jboss-xnio-base
0:3.4.7-1.Final_redhat_1.1.ep7.el6, 0:3.4.7-1.Final_redhat_1.1.ep7.el7
eap7-jgroups
0:3.6.12-1.Final_redhat_1.1.ep7.el6, 0:3.6.12-1.Final_redhat_1.1.ep7.el7
eap7-lucene-solr
0:5.3.1-4.redhat_2.1.ep7.el6, 0:5.3.1-4.redhat_2.1.ep7.el7
eap7-resteasy
0:3.0.19-7.SP5_redhat_1.1.ep7.el6, 0:3.0.19-7.SP5_redhat_1.1.ep7.el7
eap7-undertow
0:1.3.31-3.Final_redhat_3.1.ep7.el6, 0:1.3.31-3.Final_redhat_3.1.ep7.el7
eap7-wildfly
0:7.0.9-4.GA_redhat_3.1.ep7.el6, 0:7.0.9-4.GA_redhat_3.1.ep7.el7
eap7-wildfly-javadocs
0:7.0.9-2.GA_redhat_3.1.ep7.el6, 0:7.0.9-2.GA_redhat_3.1.ep7.el7
lucene
5.5.0-4.1.mga6
lucene-solr
3.6.0+dfsg-1+deb7u3, 3.6.2+dfsg-10+deb9u1, 3.6.2+dfsg-11, 3.6.2+dfsg-2ubuntu0.1~esm1, 3.6.2+dfsg-5+deb8u1, 3.6.2+dfsg-8ubuntu0.1
org.apache.solr:solr-core
5.5.5, 6.6.2, 7.1.0
rh-java-common-lucene
0:4.8.0-6.9.el6, 0:4.8.0-6.9.el7
rh-java-common-lucene5
0:5.4.1-2.4.el6, 0:5.4.1-2.4.el7
Timeline
Publicly disclosed
Oct 14, 2017
Last updated
Oct 24, 2026
Weakness Type
- CWE-138 Improper Neutralization of Special Elements
- CWE-611 Improper Restriction of XML External Entity Reference
References
- advisorynvd.nist.gov · CVE-2017-12629
- advisorysecurity-tracker.debian.org · CVE-2017-12629
- advisoryubuntu.com · CVE-2017-12629
- advisorycve.org · CVERecord
- advisorymail-archives.apache.org · <CAKrJsP=twErMhzf+FtUMOpCk7+r0pK35hAqoqf_ZtvEos…
FAQ
Common Questions.
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.
Affected: Solr (Apache); Jboss Enterprise Application Platform (Redhat) versions 7.0.0, 7.1.0; Ubuntu Linux (Canonical) versions 16.04, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Solr 5.5.4, Apache Solr before 7.1 with Apache Lucene before 7.1 5.3.1-redhat-2, Apache Solr before 7.1 with Apache Lucene before 7.1 6.6.2.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2017-12629 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo