{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.solr:solr-core. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-12629 exists.","fix":"Upgrade org.apache.solr:solr-core to a fixed version for your release line: 5.5.5, 6.6.2 or 7.1.0.","what":"CVE-2017-12629 is a critical vulnerability in Canonical Ubuntu Linux, published on 14 Oct 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-12629 and fix it if it is affected.\n\nWhat it is: CVE-2017-12629 is a critical vulnerability in Canonical Ubuntu Linux, published on 14 Oct 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-12629 exists.\n\nAffected packages and fixed versions:\n- org.apache.solr:solr-core (Maven): affected from 5.5.0; fixed in 5.5.5\n- org.apache.solr:solr-core (Maven): affected from 5.5.0; fixed in 5.5.5\n- org.apache.solr:solr-core (Maven): affected from 6.0.0; fixed in 6.6.2\n- org.apache.solr:solr-core (Maven): affected from 6.0.0; fixed in 6.6.2\n- org.apache.solr:solr-core (Maven): affected from 7.0.0; fixed in 7.1.0\n- org.apache.solr:solr-core (Maven): affected from 7.0.0; fixed in 7.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2017-12629/ (Markdown: https://insights.sbomify.com/CVE-2017-12629/index.md)","id":"CVE-2017-12629","markdown":"https://insights.sbomify.com/CVE-2017-12629/index.md","name":"CVE-2017-12629","record":{"aliases":["DEBIAN-CVE-2017-12629","DLA-1254-1","GHSA-mh7g-99w9-xpjm","MGASA-2017-0403","RHSA-2017:3123","RHSA-2017:3451","RHSA-2017:3452","UBUNTU-CVE-2017-12629","USN-4259-1"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache Solr search platform","requires_auth":"none","summary":"Attackers can achieve remote code execution and read arbitrary files via XXE in the XML Query Parser and Config API listener.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"solr","vendor":"apache"},{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"jboss_enterprise_application_platform","vendor":"redhat"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"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.","ecosystems":["Maven","Red Hat:jboss_enterprise_application_platform:7::el6","Red Hat:jboss_enterprise_application_platform:7::el7","Red Hat:rhel_software_collections:3::el6","Red Hat:rhel_software_collections:3::el7"],"exploits":{"exploitdb":1,"first_seen":"2017-10-17","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2017-10-17","kind":"exploitdb","ref":"43009","stars":null,"title":"Apache Solr 7.0.1 - XML External Entity Expansion / Remote Code Execution"},{"date":"2025-08-01T14:31:44Z","kind":"github_poc","ref":"https://github.com/captain-woof/cve-2017-12629","stars":0,"title":"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."},{"date":"2026-10-08T19:37:45Z","kind":"github_poc","ref":"https://github.com/CyberCTF/vulhub-solr-cve-2017-12629-rce","stars":0,"title":"Vulhub solr/CVE-2017-12629-RCE: Apache Solr RunExecutableListener RCE (CVE-2017-12629), run with Isoloom"},{"date":null,"kind":"nuclei","ref":"http/cves/2017/CVE-2017-12629.yaml","stars":null,"title":"Apache Solr \u003c= 7.1 - XML Entity Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"Remote code execution occurs in Apache Solr","id":"CVE-2017-12629","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","redhat:jboss_enterprise_application_platform"],"type":"xxe","year":"2017"},"n_packages":104,"n_references":24,"next":{"headline":"Apache Drill vulnerable to Cross-site Scripting","id":"CVE-2017-12630"},"packages":[{"ecosystem":"Maven","fixed":["5.5.5"],"introduced":["5.5.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-mh7g-99w9-xpjm"},{"ecosystem":"Maven","fixed":["5.5.5"],"introduced":["5.5.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-mh7g-99w9-xpjm"},{"ecosystem":"Maven","fixed":["6.6.2"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-mh7g-99w9-xpjm"},{"ecosystem":"Maven","fixed":["6.6.2"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-mh7g-99w9-xpjm"},{"ecosystem":"Maven","fixed":["7.1.0"],"introduced":["7.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":null,"source":"GHSA-mh7g-99w9-xpjm"},{"ecosystem":"Maven","fixed":["7.1.0"],"introduced":["7.0.0"],"last_affected":[],"package":"org.apache.solr:solr-core","purl":"pkg:maven/org.apache.solr/solr-core","source":"GHSA-mh7g-99w9-xpjm"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-analyzers-common","purl":"pkg:rpm/redhat/eap7-lucene-analyzers-common","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-backward-codecs","purl":"pkg:rpm/redhat/eap7-lucene-backward-codecs","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-core","purl":"pkg:rpm/redhat/eap7-lucene-core","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-facet","purl":"pkg:rpm/redhat/eap7-lucene-facet","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-misc","purl":"pkg:rpm/redhat/eap7-lucene-misc","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-queries","purl":"pkg:rpm/redhat/eap7-lucene-queries","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-queryparser","purl":"pkg:rpm/redhat/eap7-lucene-queryparser","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el6","fixed":["0:5.3.1-4.redhat_2.1.ep7.el6"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-solr","purl":"pkg:rpm/redhat/eap7-lucene-solr","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-analyzers-common","purl":"pkg:rpm/redhat/eap7-lucene-analyzers-common","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-backward-codecs","purl":"pkg:rpm/redhat/eap7-lucene-backward-codecs","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-core","purl":"pkg:rpm/redhat/eap7-lucene-core","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-facet","purl":"pkg:rpm/redhat/eap7-lucene-facet","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-misc","purl":"pkg:rpm/redhat/eap7-lucene-misc","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-queries","purl":"pkg:rpm/redhat/eap7-lucene-queries","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-queryparser","purl":"pkg:rpm/redhat/eap7-lucene-queryparser","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:jboss_enterprise_application_platform:7::el7","fixed":["0:5.3.1-4.redhat_2.1.ep7.el7"],"introduced":["0"],"last_affected":[],"package":"eap7-lucene-solr","purl":"pkg:rpm/redhat/eap7-lucene-solr","source":"RHSA-2017:3123"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene","purl":"pkg:rpm/redhat/rh-java-common-lucene","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-analysis","purl":"pkg:rpm/redhat/rh-java-common-lucene-analysis","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-analyzers-phonetic","purl":"pkg:rpm/redhat/rh-java-common-lucene-analyzers-phonetic","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-analyzers-smartcn","purl":"pkg:rpm/redhat/rh-java-common-lucene-analyzers-smartcn","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-analyzers-stempel","purl":"pkg:rpm/redhat/rh-java-common-lucene-analyzers-stempel","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-classification","purl":"pkg:rpm/redhat/rh-java-common-lucene-classification","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-codecs","purl":"pkg:rpm/redhat/rh-java-common-lucene-codecs","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-facet","purl":"pkg:rpm/redhat/rh-java-common-lucene-facet","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-grouping","purl":"pkg:rpm/redhat/rh-java-common-lucene-grouping","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-highlighter","purl":"pkg:rpm/redhat/rh-java-common-lucene-highlighter","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-javadoc","purl":"pkg:rpm/redhat/rh-java-common-lucene-javadoc","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-join","purl":"pkg:rpm/redhat/rh-java-common-lucene-join","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-memory","purl":"pkg:rpm/redhat/rh-java-common-lucene-memory","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-misc","purl":"pkg:rpm/redhat/rh-java-common-lucene-misc","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-parent","purl":"pkg:rpm/redhat/rh-java-common-lucene-parent","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-queries","purl":"pkg:rpm/redhat/rh-java-common-lucene-queries","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-queryparser","purl":"pkg:rpm/redhat/rh-java-common-lucene-queryparser","source":"RHSA-2017:3451"},{"ecosystem":"Red Hat:rhel_software_collections:3::el6","fixed":["0:4.8.0-6.9.el6"],"introduced":["0"],"last_affected":[],"package":"rh-java-common-lucene-replicator","purl":"pkg:rpm/redhat/rh-java-common-lucene-replicator","source":"RHSA-2017:3451"}],"prev":{"headline":"Apache James Privilege Escalation","id":"CVE-2017-12628"},"products":["Apache Solr before 7.1 with Apache Lucene before 7.1"],"published":"2017-10-14","related":[{"cvss_score":7.5,"headline":"Apache Solr VelocityResponseWriter Plug-In Remote Code Execution","id":"CVE-2019-17558","kev_date_added":"2021-11-03","published":"2019-12-30"},{"cvss_score":7.2,"headline":"Apache Solr DataImportHandler Code Injection","id":"CVE-2019-0193","kev_date_added":"2021-12-10","published":"2019-08-01"},{"cvss_score":9.8,"headline":"Apache Solr: Authentication bypass possible using a fake URL Path ending","id":"CVE-2024-45216","kev_date_added":null,"published":"2024-10-16"},{"cvss_score":9.8,"headline":"Apache Solr information disclosure vulnerability through DataImportHandler","id":"CVE-2021-44548","kev_date_added":null,"published":"2021-12-23"},{"cvss_score":9.8,"headline":"SSRF vulnerability with the Replication handler","id":"CVE-2021-27905","kev_date_added":null,"published":"2021-04-13"},{"cvss_score":9.8,"headline":"Incorrect Authorization in Apache Solr","id":"CVE-2020-13957","kev_date_added":null,"published":"2020-10-13"},{"cvss_score":9.8,"headline":"Unrestricted upload of file with dangerous type in Apache Solr","id":"CVE-2019-12409","kev_date_added":null,"published":"2019-11-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution and read arbitrary files via XXE in the XML Query Parser and Config API listener.","url":"https://insights.sbomify.com/CVE-2017-12629/"}