CVE-2017-12629
CriticalPublic exploitRemote code execution occurs in Apache Solr
Published Oct 17, 2018 · Updated Aug 4, 2026 · Also known as DEBIAN-CVE-2017-12629, DLA-1254-1, DSA-4124-1, GHSA-mh7g-99w9-xpjm, 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 7.1.0.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
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
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2017-12629 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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
52 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, 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-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 17, 2018
Last updated
Aug 4, 2026
Weakness Type
- CWE-138 Improper Neutralization of Special Elements
- CWE-611 Improper Restriction of XML External Entity Reference
References
- advisoryhttp://mail-archives.apache.org/mod_mbox/lucene-dev/201710.mbox/%3CCAKrJsP=twErMhzf+FtUMOpCk7+r0pK35hAqoqf_ZtvEoshTgjQ@mail.gmail.com%3E
- advisoryRHSA-2020:2561
- advisoryRHSA-2023:1334
- advisoryhttps://bugzilla.redhat.com/show_bug.cgi?id=1501529
- advisoryGHSA advisory
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 7.1.0.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2017-12629 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo