cve.bz

CVE-2017-12629

9.8 criticalExploitEPSS 92%Fix available

Critical (9.8). EPSS 92% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.solr:solr-core 5.5.5, 6.6.2, 7.1.0.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
92% (unchanged from 92% a week ago; 92% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-12629 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-12629?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-12629?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-12629 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:solrfrom 5.5.0 through 5.5.4
apache:solrfrom 6.0.0 through 6.6.1
apache:solrfrom 7.0.0 through 7.0.1
redhat:jboss_enterprise_application_platform7.0.0
redhat:jboss_enterprise_application_platform7.1.0
debian:debian_linux7.0
debian:debian_linux8.0
debian:debian_linux9.0
canonical:ubuntu_linux16.04

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mh7g-99w9-xpjmMavenorg.apache.solr:solr-core>=7.0.0 <7.1.07.1.0
GHSA-mh7g-99w9-xpjmMavenorg.apache.solr:solr-core>=6.0.0 <6.6.26.6.2
GHSA-mh7g-99w9-xpjmMavenorg.apache.solr:solr-core>=5.5.0 <5.5.55.5.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7lucene-solr3.6.0+dfsg-1+deb7u3DLA-1254-1
Debian8lucene-solr3.6.2+dfsg-5+deb8u1DSA-4124-1
Debian9lucene-solr3.6.2+dfsg-10+deb9u1DSA-4124-1
Debian12, 13, 14lucene-solr3.6.2+dfsg-11DEBIAN-CVE-2017-12629
Ubuntu16.04:LTSlucene-solr3.6.2+dfsg-8ubuntu0.1UBUNTU-CVE-2017-12629 USN-4259-1
UbuntuPro:14.04:LTSlucene-solr3.6.2+dfsg-2ubuntu0.1~esm1UBUNTU-CVE-2017-12629
Red Hatjboss_enterprise_application_platform:7::el6eap7-activemq-artemis, eap7-activemq-artemis-ra, eap7-activemq-artemis-cli and 12 more0:1.1.0-19.SP24_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-hibernate, eap7-hibernate-core, eap7-hibernate-java8 and 3 more0:5.0.16-1.Final_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.3.8-1.Final_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-jboss-ec2-eap, eap7-jboss-ec2-eap-samples0:7.0.9-2.GA_redhat_2.ep7.el6RHSA-2018:0005
Red Hatjboss_enterprise_application_platform:7::el6eap7-jboss-remoting0:4.0.25-1.Final_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-jboss-xnio-base0:3.4.7-1.Final_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-jgroups0:3.6.12-1.Final_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-lucene-core, eap7-lucene-misc, eap7-lucene-solr and 5 more0:5.3.1-4.redhat_2.1.ep7.el6RHSA-2017:3123
Red Hatjboss_enterprise_application_platform:7::el6eap7-resteasy, eap7-resteasy-cdi, eap7-resteasy-jaxrs and 15 more0:3.0.19-7.SP5_redhat_1.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-undertow0:1.3.31-3.Final_redhat_3.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-wildfly, eap7-wildfly-modules0:7.0.9-4.GA_redhat_3.1.ep7.el6RHSA-2018:0002
Red Hatjboss_enterprise_application_platform:7::el6eap7-wildfly-javadocs0:7.0.9-2.GA_redhat_3.1.ep7.el6RHSA-2018:0002
16 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

The following products are not affected by this flaw, as they do not use the vulnerable functionality of either aspect of the issue.

Red Hat JBoss Enterprise Application Platform 6

Red Hat JBoss BPM Suite

Red Hat JBoss BRMS

Red Hat Enterprise Virtualization Manager

Red Hat Single Sign-On 7

Red Hat JBoss Portal Platform 6

Red Hat JBoss Enterprise Application Platform 7 is not affected by this flaw. However, it does ship the vulnerable Lucene class in a dependency to another component. Customers who reuse the lucene-queryparser jar in their applications may be vulnerable to the External Entity Expansion aspect of this flaw. This will be patched in a forthcoming release.

Red Hat JBoss Fuse is not affected by this flaw, as it does not use the vulnerable functionality of either aspect of this flaw. Fuse customers who may be running external Solr servers, while not affected from the Fuse side, are advised to secure their Solr servers as recommended in the mitigation provided.

The following products ship only the Lucene components relevant to this flaw, and are not vulnerable to the second portion of the vulnerability, the code execution exploit. As such, the impact of this flaw has been determined to be Moderate for these respective products:

Red Hat JBoss Data Grid 7

Red Hat Enterprise Linux 6

Red Hat Software Collections 2.4

This issue did not affect the versions of lucene as shipped with Red Hat Enterprise Linux 5.

This issue does not affect Elasticsearch as shipped in OpenShift Container Platform.

Red Hat's mitigation

Until fixes are available, all Solr users are advised to restart their Solr instances with the system parameter `-Ddisable.configEdit=true`. This will disallow any changes to be made to configurations via the Config API. This is a key factor in this vulnerability, since it allows GET requests to add the RunExecutableListener to the config.

This is sufficient to protect from this type of attack, but means you cannot use the edit capabilities of the Config API until further fixes are in place.

ProductPackageStateAdvisory
Red Hat JBoss Data Grid 7.1Fixed 2017-11-16RHSA-2017:3244
Red Hat JBoss EAP 7lucene-coreFixed 2018-01-03RHSA-2018:0003
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-lucene-solr-0:5.3.1-4.redhat_2.1.ep7.el6Fixed 2017-11-06RHSA-2017:3123
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-activemq-artemis-0:1.1.0-19.SP24_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-hibernate-0:5.0.16-1.Final_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-ironjacamar-0:1.3.8-1.Final_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-jboss-remoting-0:4.0.25-1.Final_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-jboss-xnio-base-0:3.4.7-1.Final_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-jgroups-0:3.6.12-1.Final_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6eap7-resteasy-0:3.0.19-7.SP5_redhat_1.1.ep7.el6Fixed 2018-01-03RHSA-2018:0002
Red Hat BPM Suite 6luceneNot affected
Red Hat Enterprise Linux 5luceneNot affected
Red Hat Enterprise Linux 6luceneWill not fix
Red Hat Fuse 7solrNot affected
Red Hat JBoss BRMS 6luceneNot affected
Red Hat JBoss Data Grid 7luceneAffected
Red Hat JBoss Enterprise Application Platform 6luceneNot affected
Red Hat JBoss Enterprise Application Platform 6solrNot affected
Red Hat JBoss Fuse 6camelNot affected
Red Hat JBoss Portal 6solrNot affected
35 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-12629.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Apache Solr <= 7.1 - XML Entity Injection
  • Emerging Threats Open ET EXPLOIT Possible CVE-2017-12629 RCE Exploit Attempt (HTTP POST) sid 2024884
  • Emerging Threats Open ET EXPLOIT Possible CVE-2017-12629 XXE Exploit Attempt (URI) sid 2024885
  • Emerging Threats Open ET EXPLOIT Possible CVE-2017-12629 RCE Exploit Attempt (HTTP GET 1) sid 2024886
  • Emerging Threats Open ET EXPLOIT Possible CVE-2017-12629 RCE Exploit Attempt (HTTP GET 2) sid 2024887

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON