XML external entity injection in Apache Solr before 7.1 with Apache Lucene before 7.1
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 14 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Apache Solr before 7.1 with Apache Lucene before 7.1 | Apache Solr before 7.1 with Apache Lucene before 7.1; lucene-solr to before 7.1.0 | lucene-solr 7.2.0, lucene-solr 8.0.0, 7.1.0 | Patch available | CNA |
| — | Apache Solr before 7.1 with Apache Lucene before 7.1 | lucene-solr to before 5.3.1-redhat-2 | 5.3.1-redhat-2 | Patch available | CNA |
| — | org.apache.solr:solr-core (Maven) | 7.0.0 to before 7.1.0 | 7.1.0 | Patch available | GHSA-mh7g-99w9-xpjm |
| — | org.apache.solr:solr-core (Maven) | 6.0.0 to before 6.6.2 | 6.6.2 | Patch available | GHSA-mh7g-99w9-xpjm |
| — | org.apache.solr:solr-core (Maven) | 5.5.0 to before 5.5.5 | 5.5.5 | Patch available | GHSA-mh7g-99w9-xpjm |
- Apache Solr before 7.1 with Apache Lucene before 7.1 Vendor— Affected Apache Solr before 7.1 with Apache Lucene before 7.1; lucene-solr to before 7.1.0 Fixed in lucene-solr 7.2.0, lucene-solr 8.0.0, 7.1.0 Patch available CNA
- Apache Solr before 7.1 with Apache Lucene before 7.1 Vendor— Affected lucene-solr to before 5.3.1-redhat-2 Fixed in 5.3.1-redhat-2 Patch available CNA
- org.apache.solr:solr-core (Maven) Vendor— Affected 7.0.0 to before 7.1.0 Fixed in 7.1.0 Patch available GHSA-mh7g-99w9-xpjm
- org.apache.solr:solr-core (Maven) Vendor— Affected 6.0.0 to before 6.6.2 Fixed in 6.6.2 Patch available GHSA-mh7g-99w9-xpjm
- org.apache.solr:solr-core (Maven) Vendor— Affected 5.5.0 to before 5.5.5 Fixed in 5.5.5 Patch available GHSA-mh7g-99w9-xpjm
CPE configurations NVD · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:* | 5.5.0 – 5.5.4; 6.0.0 – 6.6.1; 7.0.0 – 7.0.1 | Vulnerable | Apache |
| cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.0.0:*:*:*:*:*:*:* | 7.0.0 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.1.0:*:*:*:*:*:*:* | 7.1.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* | 6.0 | Running on | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Running on | Red Hat |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
- cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:* Versions 5.5.0 – 5.5.4; 6.0.0 – 6.6.1; 7.0.0 – 7.0.1 Vulnerable ·Apache
- cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.0.0:*:*:*:*:*:*:* Versions 7.0.0 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.1.0:*:*:*:*:*:*:* Versions 7.1.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* Versions 6.0 Running on ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Running on ·Red Hat
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
Remediation
- Fix · CNA Apache Solr before 7.1 with Apache Lucene before 7.1 Fixed in lucene-solr 7.2.0, lucene-solr 8.0.0, 7.1.0
- Fix · CNA Apache Solr before 7.1 with Apache Lucene before 7.1 Fixed in 5.3.1-redhat-2
- Fix · GHSA-mh7g-99w9-xpjm org.apache.solr:solr-core (Maven) Fixed in 7.1.0 Advisory →
- Fix · GHSA-mh7g-99w9-xpjm org.apache.solr:solr-core (Maven) Fixed in 6.6.2 Advisory →
- Fix · GHSA-mh7g-99w9-xpjm org.apache.solr:solr-core (Maven) Fixed in 5.5.5 Advisory →
Red Hat 11 advisories
- RHSA-2023:1334 Released 2023-03-20 · Red Hat rating CriticalRed Hat Process Automation Manager 7.13.2 security update
- RHPAM 7.13.1 async
- RHSA-2020:2561 Released 2020-06-15 · Red Hat rating CriticalEAP Continuous Delivery Technical Preview Release 12 security update
- Red Hat JBoss Enterprise Application Platform Continuous Delivery
- RHSA-2018:0005 Released 2018-01-03 · Red Hat rating Importanteap7-jboss-ec2-eap security update
- Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6 Server eap7-jboss-ec2-eap-7.0.9-2.GA_redhat_2.ep7.el6, eap7-jboss-ec2-eap-samples-7.0.9-2.GA_redhat_2.ep7.el6
- Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 7 Server eap7-jboss-ec2-eap-7.0.9-2.GA_redhat_2.ep7.el7, eap7-jboss-ec2-eap-samples-7.0.9-2.GA_redhat_2.ep7.el7
Show 8 more Red Hat advisories
- RHSA-2018:0004 Released 2018-01-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.0.9 security update on RHEL 7
- Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 7 Server eap7-activemq-artemis-1.1.0-19.SP24_redhat_1.1.ep7.el7, eap7-activemq-artemis-cli-1.1.0-19.SP24_redhat_1.1.ep7.el7, eap7-activemq-artemis-commons-1.1.0-19.SP24_redhat_1.1.ep7.el7 +47
- RHSA-2018:0002 Released 2018-01-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.0.9 security update on RHEL 6
- Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6 Server eap7-activemq-artemis-1.1.0-19.SP24_redhat_1.1.ep7.el6, eap7-activemq-artemis-cli-1.1.0-19.SP24_redhat_1.1.ep7.el6, eap7-activemq-artemis-commons-1.1.0-19.SP24_redhat_1.1.ep7.el6 +47
- RHSA-2018:0003 Released 2018-01-03 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 7.0.9 security update
- Red Hat JBoss EAP 7.0
- RHSA-2017:3452 Released 2017-12-12 · Red Hat rating Moderaterh-java-common-lucene5 security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-java-common-lucene5-5.4.1-2.4.el6, rh-java-common-lucene5-analysis-5.4.1-2.4.el6, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-java-common-lucene5-5.4.1-2.4.el7, rh-java-common-lucene5-analysis-5.4.1-2.4.el7, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-java-common-lucene5-5.4.1-2.4.el6, rh-java-common-lucene5-analysis-5.4.1-2.4.el6, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-java-common-lucene5-5.4.1-2.4.el7, rh-java-common-lucene5-analysis-5.4.1-2.4.el7, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-java-common-lucene5-5.4.1-2.4.el7, rh-java-common-lucene5-analysis-5.4.1-2.4.el7, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-java-common-lucene5-5.4.1-2.4.el6, rh-java-common-lucene5-analysis-5.4.1-2.4.el6, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-java-common-lucene5-5.4.1-2.4.el7, rh-java-common-lucene5-analysis-5.4.1-2.4.el7, rh-java-common-lucene5-analyzers-smartcn-5.4.1-2.4.el7 +17
- RHSA-2017:3451 Released 2017-12-12 · Red Hat rating Moderaterh-java-common-lucene security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-java-common-lucene-4.8.0-6.9.el6, rh-java-common-lucene-analysis-4.8.0-6.9.el6, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-java-common-lucene-4.8.0-6.9.el7, rh-java-common-lucene-analysis-4.8.0-6.9.el7, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el7 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-java-common-lucene-4.8.0-6.9.el6, rh-java-common-lucene-analysis-4.8.0-6.9.el6, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-java-common-lucene-4.8.0-6.9.el7, rh-java-common-lucene-analysis-4.8.0-6.9.el7, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el7 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-java-common-lucene-4.8.0-6.9.el7, rh-java-common-lucene-analysis-4.8.0-6.9.el7, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el7 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-java-common-lucene-4.8.0-6.9.el6, rh-java-common-lucene-analysis-4.8.0-6.9.el6, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el6 +18
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-java-common-lucene-4.8.0-6.9.el7, rh-java-common-lucene-analysis-4.8.0-6.9.el7, rh-java-common-lucene-analyzers-phonetic-4.8.0-6.9.el7 +18
- RHSA-2017:3244 Released 2017-11-16 · Red Hat rating ImportantRed Hat JBoss Data Grid 7.1.1 security update
- Red Hat JBoss Data Grid 7.1
- RHSA-2017:3123 Released 2017-11-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform security update
- Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6 Server eap7-lucene-analyzers-common-5.3.1-4.redhat_2.1.ep7.el6, eap7-lucene-backward-codecs-5.3.1-4.redhat_2.1.ep7.el6, eap7-lucene-core-5.3.1-4.redhat_2.1.ep7.el6 +5
- Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 7 Server eap7-lucene-analyzers-common-5.3.1-4.redhat_2.1.ep7.el7, eap7-lucene-backward-codecs-5.3.1-4.redhat_2.1.ep7.el7, eap7-lucene-core-5.3.1-4.redhat_2.1.ep7.el7 +5
- RHSA-2017:3124 Released 2017-11-06 · Red Hat rating ModerateRed Hat JBoss Enterprise Application Platform 7.0 security update
- Red Hat JBoss Enterprise Application Platform 7.0 security update
Vendor assessments
Red Hat
Red Hat rating: Critical. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Data Grid 7 | Affected | No fix yet |
| RHPAM 7.13.1 async | Fixed | RHSA-2023:1334 |
| Red Hat JBoss Data Grid 7.1 | Fixed | RHSA-2017:3244 |
| Red Hat JBoss EAP 7.0 | Fixed | RHSA-2018:0003 |
| Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 6 Server | Fixed | RHSA-2017:3123, RHSA-2018:0002, RHSA-2018:0005 |
| Red Hat JBoss Enterprise Application Platform 7.0 for RHEL 7 Server | Fixed | RHSA-2017:3123, RHSA-2018:0004, RHSA-2018:0005 |
| Red Hat JBoss Enterprise Application Platform 7.0 security update | Fixed | RHSA-2017:3124 |
| Red Hat JBoss Enterprise Application Platform Continuous Delivery | Fixed | RHSA-2020:2561 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:3451, RHSA-2017:3452 |
Not affected: 11 products
- Red Hat BPM Suite 6
- Red Hat Enterprise Linux 5
- Red Hat Fuse 7
- Red Hat JBoss BRMS 6
- Red Hat JBoss Enterprise Application Platform 6
- Red Hat JBoss Fuse 6
- Red Hat JBoss Portal 6
- Red Hat OpenShift Container Platform 3.11
- Red Hat OpenShift Container Platform 4
- Red Hat Single Sign-On 7
- Red Hat Virtualization 4
Timeline
- 2026-10-02 Threatist record created from CVE-2017-12629
- 2026-10-03 Alias added: GHSA-mh7g-99w9-xpjm
- 2026-11-05 Fix available: Red Hat JBoss EAP 7.0 · Red Hat
References
Exploit 2
Advisory 19
- RHSA-2017:3451
- RHSA-2018:0002
- RHSA-2018:0004
- RHSA-2017:3452
- [debian-lts-announce] 20180121 [SECURITY] [DLA 1254-1] lucene-solr security update
- RHSA-2018:0003
- RHSA-2017:3123
- RHSA-2018:0005
- RHSA-2017:3244
- RHSA-2017:3124
- [www-announce] 20171019 [SECURITY] CVE-2017-12629: Several critical vulnerabilities discovered in Apache Solr (XXE & RCE)
- DSA-4124
- USN-4259-1
- https://twitter.com/ApacheSolr/status/918731485611401216
- https://twitter.com/searchtools_avi/status/918904813613543424
- http://openwall.com/lists/oss-security/2017/10/13/1
- https://twitter.com/joshbressers/status/919258716297420802
- https://nvd.nist.gov/vuln/detail/CVE-2017-12629
- https://github.com/advisories/GHSA-mh7g-99w9-xpjm
Other 15
- [solr-users] 20210618 CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability
- [solr-users] 20210618 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability
- [solr-users] 20210728 Re: CVE-2021-27905 Apache Solr ReplicationHandler/SSRF vulnerability
- [jackrabbit-oak-issues] 20210817 [jira] [Created] (OAK-9537) Security vulnerability in org/apache/lucene/queryparser/xml/CoreParser.java
- https://github.com/apache/lucene-solr/commit/3bba91131b5257e64b9d0a2193e1e32a145b2a2
- https://github.com/apache/lucene-solr/commit/d8000beebfb13ba0b6e754f84c760e11592d8d1
- https://github.com/apache/lucene-solr/commit/f9fd6e9e26224f26f1542224ce187e04c27b268
- https://www.exploit-db.com/exploits/43009
- https://usn.ubuntu.com/4259-1
- https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef@%3Cusers.solr.apache.org%3E
- https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314@%3Cusers.solr.apache.org%3E
- https://lists.apache.org/thread.html/r26c996b068ef6c5e89aa59acb769025cfd343a08e63fbe9e7f3f720f@%3Coak-issues.jackrabbit.apache.org%3E
- https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc@%3Cusers.solr.apache.org%3E
- https://issues.apache.org/jira/browse/SOLR-11477
- https://github.com/apache/lucene
Sources
- CVE-2017-12629 · CVE Program
- CVE-2017-12629 · NVD
- FIRST EPSS
- GHSA-mh7g-99w9-xpjm · GitHub Advisory Database · CC BY 4.0
- CVE-2017-12629 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences