{"id":"CVE-2017-12629","published":"2017-10-14T21:00:00Z","modified":"2024-08-05T18:43:56Z","title":"Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 by exploiting XXE in conjunction…","vendor":null,"product":null,"tier":"core","eol":null,"affectedVersions":[{"vendor":"n/a","product":"Apache Solr before 7.1 with Apache Lucene before 7.1","versions":["Apache Solr before 7.1 with Apache Lucene before 7.1",">= lucene-solr, < 7.1.0"]},{"vendor":"n/a","product":"Apache Solr before 7.1 with Apache Lucene before 7.1","versions":[">= lucene-solr, < 5.3.1-redhat-2"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Apache Solr before 7.1 (built on Apache Lucene before 7.1) contains an XML external entity (XXE) flaw in its XML Query Parser, which is enabled by default, and remote code execution is possible by combining XXE with the Config API add-listener command to reach the RunExecutableListener class. An attacker who can send query requests with deftype=xmlparser can use the XXE to upload malicious data to the /upload request handler or read arbitrary local files via a blind XXE over the ftp wrapper, and the RunExecutableListener route reaches code execution on all affected Solr versions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:15:06Z"},"cvss":null,"epss":{"score":0.91896,"percentile":0.99817,"date":"2026-10-28","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":3,"pulses":[{"name":"ACTUALIZACION |  Multiple security vulnerabilities are addressed with IBM Business Automation Manager Open Editions 8.0.2","url":"https://otx.alienvault.com/pulse/63e3b93f9a7cfdeecbd5f882","created":"2023-02-08"},{"name":"Proof Point Emerging Exploit list","url":"https://otx.alienvault.com/pulse/6399fdc966948f6b537b9762","created":"2022-12-14"},{"name":"Attackers Are Taking Advantage of the Open-Source Service Interactsh for Malicious Purposes","url":"https://otx.alienvault.com/pulse/61695dd13611f59694746cda","created":"2021-10-15"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2017:3451","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://s.apache.org/FJDl","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0002","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/101261","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0004","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3452","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/01/msg00028.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.exploit-db.com/exploits/43009/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0003","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3123","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0005","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3244","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2017:3124","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://mail-archives.us.apache.org/mod_mbox/www-announce/201710.mbox/%3CCAOOKt51UO_6Vy%3Dj8W%3Dx1pMbLW9VJfZyFWz7pAnXJC_OAdSZubA%40mail.gmail.com%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.debian.org/security/2018/dsa-4124","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://usn.ubuntu.com/4259-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://twitter.com/ApacheSolr/status/918731485611401216","tags":["x_refsource_MISC"]},{"url":"https://twitter.com/searchtools_avi/status/918904813613543424","tags":["x_refsource_MISC"]},{"url":"http://openwall.com/lists/oss-security/2017/10/13/1","tags":["x_refsource_MISC"]},{"url":"https://twitter.com/joshbressers/status/919258716297420802","tags":["x_refsource_MISC"]},{"url":"https://lists.apache.org/thread.html/r95df34bb158375948da82b4dfe9a1b5d528572d586584162f8f5aeef%40%3Cusers.solr.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r140128dc6bb4f4e0b6a39e962c7ca25a8cbc8e48ed766176c931fccc%40%3Cusers.solr.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r3da74965aba2b5f5744b7289ad447306eeb2940c872801819faa9314%40%3Cusers.solr.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.apache.org/thread.html/r26c996b068ef6c5e89aa59acb769025cfd343a08e63fbe9e7f3f720f%40%3Coak-issues.jackrabbit.apache.org%3E","tags":["mailing-list","x_refsource_MLIST"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=7.0.0, <7.1.0",">=6.0.0, <6.6.2",">=5.5.0, <5.5.5"],"patched":["7.1.0","6.6.2","5.5.5"],"from":["GHSA-mh7g-99w9-xpjm"],"provenance":"source"}],"advisories":[{"id":"GHSA-mh7g-99w9-xpjm","url":"https://github.com/advisories/GHSA-mh7g-99w9-xpjm","severity":"CRITICAL","ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=7.0.0, <7.1.0"],"patched":["7.1.0"],"provenance":"source","from":"GHSA"},{"id":"GHSA-mh7g-99w9-xpjm","url":"https://github.com/advisories/GHSA-mh7g-99w9-xpjm","severity":"CRITICAL","ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=6.0.0, <6.6.2"],"patched":["6.6.2"],"provenance":"source","from":"GHSA"},{"id":"GHSA-mh7g-99w9-xpjm","url":"https://github.com/advisories/GHSA-mh7g-99w9-xpjm","severity":"CRITICAL","ecosystem":"Maven","package":"org.apache.solr:solr-core","vulnerableRanges":[">=5.5.0, <5.5.5"],"patched":["5.5.5"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2018-0640","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-0640","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":43009,"url":"https://www.exploit-db.com/exploits/43009","title":"Apache Solr 7.0.1 - XML External Entity Expansion / Remote Code Execution","type":"webapps","platform":"xml","date":"2017-10-17","verified":true,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2017-10-17"},"pocGithub":{"count":2,"skipped":0,"earliest":"2025-08-01","earliestUrl":"https://github.com/captain-woof/cve-2017-12629","repos":[{"name":"captain-woof/cve-2017-12629","url":"https://github.com/captain-woof/cve-2017-12629","stars":0,"created":"2025-08-01"},{"name":"CyberCTF/vulhub-solr-cve-2017-12629-rce","url":"https://github.com/CyberCTF/vulhub-solr-cve-2017-12629-rce","stars":0,"created":"2026-10-08"}]},"nuclei":[{"id":"CVE-2017-12629","name":"Apache Solr <= 7.1 - XML Entity Injection","severity":"critical","path":"http/cves/2017/CVE-2017-12629.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12629.yaml"}],"first":{"date":"2017-10-17","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/43009"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/43009/","https://www.exploit-db.com/exploits/43009"],"flow":[],"timeline":[{"date":"2017-10-14","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2017-12629","provenance":"source"},{"date":"2017-10-17","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-43009); later: PoC-in-GitHub 2025-08-01","url":"https://www.exploit-db.com/exploits/43009","provenance":"source"}],"speed":{"daysToPublicExploit":3,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":26.3,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.96,"detail":"percentile 0.9982"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD reference tagged Exploit; 1 Exploit-DB entry; 1 advisory exploit reference; 2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2017-3163","published":"2017-08-30","fixed":"6.4.1","kev":false,"link":{"from":"CVE-2017-3163","to":"CVE-2017-12629","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"5.5.4","toFixed":"5.5.5","daysApart":45}]}},{"cve":"CVE-2017-7660","published":"2017-07-07","fixed":"6.6.0","kev":false},{"cve":"CVE-2017-9803","published":"2017-09-18","fixed":"6.6.1","kev":false,"link":{"from":"CVE-2017-9803","to":"CVE-2017-12629","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"6.6.1","toFixed":"6.6.2","daysApart":26}]}},{"cve":"CVE-2019-0192","published":"2019-03-07","fixed":"7.0.0","kev":false},{"cve":"CVE-2017-12629","published":"2017-10-14","fixed":"7.1.0","kev":false},{"cve":"CVE-2018-1308","published":"2018-04-09","fixed":"7.3.0","kev":false,"link":{"from":"CVE-2017-12629","to":"CVE-2018-1308","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"7.1.0","toFixed":"7.3.0","daysApart":177},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.solr:solr-core","fromFixed":"6.6.2","toFixed":"6.6.3","daysApart":177}]}},{"cve":"CVE-2018-8010","published":"2018-05-21","fixed":"7.3.1","kev":false},{"cve":"CVE-2018-8026","published":"2018-07-05","fixed":"7.4.0","kev":false}],"package":"Maven:org.apache.solr:solr-core"}}