Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-12629
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:13 UTC · Revision 1
Source evidence
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.
osv:CVE-2017-12629
Complete source record
{
"id": "16dd3c74951066794f80e0eba41b7bf42ca039af0cac019cfb44d971edc28e81",
"url": "https://osv.dev/vulnerability/CVE-2017-12629",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-12629",
"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.",
"evidence": "osv:CVE-2017-12629",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2017-12629",
"aliases": [
"CVE-2017-12629",
"GHSA-mh7g-99w9-xpjm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/lucene-solr",
"type": "GIT",
"events": [
{
"introduced": "2a228b3920a07f930f7afb6a42d0d20e184a943c"
},
{
"last_affected": "31012120ebbd93744753eb37f1dbc5e654628291"
},
{
"introduced": "48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3"
},
{
"last_affected": "9aa465a89b64ff2dabe7b4d50c472de32c298683"
},
{
"introduced": "3ba304b29825a94249c5145b3f5061e87b87d8f8"
},
{
"last_affected": "8d6c3889aa543954424d8ac1dbb3f03bf207140b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.5.0"
},
{
"last_affected": "5.5.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.0.0"
},
{
"last_affected": "6.6.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"releases/lucene-solr/7.0.1",
"releases/lucene-solr/7.0.0",
"releases/lucene-solr/5.5.4",
"releases/lucene-solr/5.5.3",
"releases/lucene-solr/5.5.2",
"releases/lucene-solr/5.5.1",
"releases/lucene-solr/5.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12629.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/apache/solr",
"type": "GIT",
"events": [
{
"introduced": "2a228b3920a07f930f7afb6a42d0d20e184a943c"
},
{
"last_affected": "31012120ebbd93744753eb37f1dbc5e654628291"
},
{
"introduced": "48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3"
},
{
"last_affected": "9aa465a89b64ff2dabe7b4d50c472de32c298683"
},
{
"introduced": "3ba304b29825a94249c5145b3f5061e87b87d8f8"
},
{
"last_affected": "8d6c3889aa543954424d8ac1dbb3f03bf207140b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.5.0"
},
{
"last_affected": "5.5.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.0.0"
},
{
"last_affected": "6.6.1"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:solr:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"releases/lucene-solr/7.0.1",
"releases/lucene-solr/7.0.0",
"releases/lucene-solr/5.5.4",
"releases/lucene-solr/5.5.3",
"releases/lucene-solr/5.5.2",
"releases/lucene-solr/5.5.1",
"releases/lucene-solr/5.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12629.json"
}
}
],
"modified": "2026-10-24T10:30:50.371787217Z",
"provider": "osv",
"references": [
"https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.org%3E",
"https://lists.apache.org/thread.html/r26c996b068ef6c5e89aa59acb769025cfd343a08e63fbe9e7f3f720f%40%3Coak-issues.jackrabbit.apache.org%3E",
"https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.org%3E",
"https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.org%3E",
"https://access.redhat.com/errata/RHSA-2017:3123",
"https://access.redhat.com/errata/RHSA-2017:3124",
"https://access.redhat.com/errata/RHSA-2017:3244",
"https://access.redhat.com/errata/RHSA-2017:3451",
"https://access.redhat.com/errata/RHSA-2017:3452",
"https://access.redhat.com/errata/RHSA-2018:0002",
"https://access.redhat.com/errata/RHSA-2018:0003",
"https://access.redhat.com/errata/RHSA-2018:0004",
"https://access.redhat.com/errata/RHSA-2018:0005",
"https://lists.debian.org/debian-lts-announce/2018/01/msg00028.html",
"https://twitter.com/ApacheSolr/status/918731485611401216",
"https://twitter.com/joshbressers/status/919258716297420802",
"https://twitter.com/searchtools_avi/status/918904813613543424",
"https://usn.ubuntu.com/4259-1/",
"https://www.debian.org/security/2018/dsa-4124",
"https://s.apache.org/FJDl",
"https://www.exploit-db.com/exploits/43009/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.0.0:*:*:*:*:*:*:*",
"cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.1.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:jboss_enterprise_application_platform",
"extracted_events": [
{
"range": [
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.0"
},
{
"introduced": "7.1.0"
},
{
"last_affected": "7.1.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-12629",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 437217,
"published_at": "2017-10-14T23:29:00.26+00:00"
}