← Vulnerability feed

Vulnerability record · CVE-2017-12629 · published 14 October 2017

CVE-2017-12629: Apache Solr XXE chained to RunExecutableListener remote code execution

Apache · Solr

Apache Solr before 7.1 (with Apache Lucene before 7.1) is affected by an XML external entity flaw in the XML Query Parser, reachable by default via deftype=xmlparser, which can read local files or upload malicious data through the /upload handler. The same record describes a second flaw: the Config API add-listener command can reach RunExecutableListener, giving remote code execution on all affected versions. The combination is severe because it is network-reachable with no authentication or user interaction and yields full confidentiality, integrity and availability impact.

9.8 CVSS 3.1 Critical EPSS 92% · top 0.2% CWE-611 · XML external entity (XXE)
9.8CVSS 3.1 base score, v2 7.5
92%EPSS exploitation probability, 30 days
NoNot in CISA KEV
4Affected product versions listed by NVD
48References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or user interaction, full impact across confidentiality, integrity and availability, and very high EPSS with public exploit references.

What it is

Apache Solr before 7.1 (with Apache Lucene before 7.1) is affected by an XML external entity flaw in the XML Query Parser, reachable by default via deftype=xmlparser, which can read local files or upload malicious data through the /upload handler. The same record describes a second flaw: the Config API add-listener command can reach RunExecutableListener, giving remote code execution on all affected versions. The combination is severe because it is network-reachable with no authentication or user interaction and yields full confidentiality, integrity and availability impact.

Impact

An unauthenticated attacker can read arbitrary local files from the Solr server and, by chaining the XXE with the RunExecutableListener path, execute arbitrary code on the host. That gives full control of the Solr process and its data.

Attack surface

Reached over the network through Solr's HTTP interface: the XML Query Parser is available by default on query requests using deftype=xmlparser, and the Config API add-listener command is exposed on affected versions. The CVSS vector shows no privileges required and no user interaction, so any reachable Solr endpoint is a candidate.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.91896 probability, 99.812 percentile) and public references carry Exploit tags, including an Exploit-DB entry and an Apache mailing-list post, indicating public exploit material exists.

What to do

  • Upgrade Apache Solr to 7.1 or later, and apply the corresponding Red Hat, Debian and Ubuntu errata for packaged deployments.
  • If immediate upgrade is not possible, restrict network access to Solr so only trusted clients can reach query and Config API endpoints.
  • Disable or block the XML Query Parser (deftype=xmlparser) and the /upload request handler where they are not required.
  • Disable external entity processing in the XML parser configuration and remove or restrict the Config API add-listener capability.
  • Run Solr with least privilege and no unnecessary filesystem or process execution rights to limit the impact of a successful chain.

Detection

  • Monitor Solr query requests for deftype=xmlparser and for XML payloads containing DOCTYPE or external entity declarations.
  • Alert on requests to the /upload handler and on Config API add-listener calls, especially from unexpected source addresses.
  • Watch for Solr child processes or outbound FTP/HTTP connections consistent with blind XXE file exfiltration.
  • Review Solr logs and host process telemetry for unexpected executable launches originating from the Solr service account.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://mail-archives.us.apache.org/mod_mbox/www-announce/201710.mbox/%3CCAOOKt51UO_6Vy%3Dj8W%3Dx1pMbLW9VJfZyFWz7pAnXJC_O Mailing ListVendor Advisory
http://openwall.com/lists/oss-security/2017/10/13/1 Mailing ListThird Party Advisory
http://www.securityfocus.com/bid/101261 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:3123 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3124 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3244 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3451 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3452 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0002 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0003 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0004 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0005 Third Party Advisory
https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.or
https://lists.apache.org/thread.html/r26c996b068ef6c5e89aa59acb769025cfd343a08e63fbe9e7f3f720f%40%3Coak-issues.jackrabbi
https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.or
https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.or
https://lists.debian.org/debian-lts-announce/2018/01/msg00028.html Mailing ListThird Party Advisory
https://s.apache.org/FJDl ExploitMailing ListVendor Advisory
https://twitter.com/ApacheSolr/status/918731485611401216 Third Party Advisory
https://twitter.com/joshbressers/status/919258716297420802 Third Party Advisory
https://twitter.com/searchtools_avi/status/918904813613543424 Third Party Advisory
https://usn.ubuntu.com/4259-1/ Third Party Advisory
https://www.debian.org/security/2018/dsa-4124 Third Party Advisory
https://www.exploit-db.com/exploits/43009/ ExploitThird Party AdvisoryVDB Entry
http://mail-archives.us.apache.org/mod_mbox/www-announce/201710.mbox/%3CCAOOKt51UO_6Vy%3Dj8W%3Dx1pMbLW9VJfZyFWz7pAnXJC_O Mailing ListVendor Advisory
http://openwall.com/lists/oss-security/2017/10/13/1 Mailing ListThird Party Advisory
http://www.securityfocus.com/bid/101261 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2017:3123 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3124 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3244 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3451 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:3452 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0002 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0003 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0004 Third Party Advisory
https://access.redhat.com/errata/RHSA-2018:0005 Third Party Advisory
https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.or
https://lists.apache.org/thread.html/r26c996b068ef6c5e89aa59acb769025cfd343a08e63fbe9e7f3f720f%40%3Coak-issues.jackrabbi
https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.or
https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.or

Track CVE-2017-12629 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2017-12629), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.