{"id":"CVE-2018-17456","published":"2018-10-06T14:00:00Z","modified":"2024-08-05T10:47:04Z","title":"Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"text":"Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x before 2.19.1 allows remote code execution during processing of a recursive \"git clone\" of a superproject if a .gitmodules file has a URL field beginning with a '-' character.","provenance":"source","from":"CVE.org"},"summary":{"text":"Git contains a flaw in its handling of recursive \"git clone\" operations on superprojects: a .gitmodules file whose URL field begins with a '-' character is processed in a way that can be abused.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:17:58Z"},"cvss":null,"epss":{"score":0.97356,"percentile":0.99899,"date":"2026-11-11","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://www.exploit-db.com/exploits/45631/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://www.securityfocus.com/bid/105523","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securitytracker.com/id/1041811","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"https://www.debian.org/security/2018/dsa-4311","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3505","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/45548/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3541","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2018:3408","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://marc.info/?l=git&m=153875888916397&w=2","tags":["x_refsource_MISC"]},{"url":"https://www.openwall.com/lists/oss-security/2018/10/06/3","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/3791-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://seclists.org/bugtraq/2019/Mar/30","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.securityfocus.com/bid/107511","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0316","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00003.html","tags":["vendor-advisory","x_refsource_SUSE"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2018-9209","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-9209","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":45548,"url":"https://www.exploit-db.com/exploits/45548","title":"Git Submodule - Arbitrary Code Execution (PoC)","type":"local","platform":"linux","date":"2018-10-05","verified":false,"provenance":"source"},{"id":45631,"url":"https://www.exploit-db.com/exploits/45631","title":"Git Submodule - Arbitrary Code Execution","type":"local","platform":"linux","date":"2018-10-16","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":2,"earliest":"2018-10-05"},"pocGithub":{"count":3,"skipped":2,"earliest":"2018-10-21","earliestUrl":"https://github.com/shpik-kr/CVE-2018-17456","repos":[{"name":"AnonymKing/CVE-2018-17456","url":"https://github.com/AnonymKing/CVE-2018-17456","stars":5,"created":"2019-06-21"},{"name":"shpik-kr/CVE-2018-17456","url":"https://github.com/shpik-kr/CVE-2018-17456","stars":0,"created":"2018-10-21"},{"name":"KKkai0315/CVE-2018-17456","url":"https://github.com/KKkai0315/CVE-2018-17456","stars":0,"created":"2024-07-22"}]},"metasploit":[{"name":"Malicious Git HTTP Server For CVE-2018-17456","module":"exploit/multi/http/git_submodule_url_exec","type":"exploit","disclosureDate":"2018-10-05","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/git_submodule_url_exec.rb"}],"first":{"date":"2018-10-05","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/45548"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/45631/","https://www.exploit-db.com/exploits/45548/","http://packetstormsecurity.com/files/152173/Sourcetree-Git-Arbitrary-Code-Execution-URL-Handling.html"],"flow":[],"timeline":[{"date":"2018-10-05","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-45548); later: Metasploit 2018-10-05, PoC-in-GitHub 2018-10-21","url":"https://www.exploit-db.com/exploits/45548","provenance":"source"},{"date":"2018-10-06","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2018-17456","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":25.0,"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.98,"detail":"percentile 0.9990"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 NVD references tagged Exploit; 2 Exploit-DB entries; 1 NVD exploit link; 3 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-git-cve-2018-17456","children":[{"from":"CVE-2018-17456","to":"CVE-2020-11008","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["fsck.c","t/t7416-submodule-dash-url.sh"],"commits":["https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404","https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46","https://github.com/git/git/commit/c44088ecc4b0722636e0a305f9608d3047197282"],"basis":"rarely changed file"}]},{"from":"CVE-2018-17456","to":"CVE-2022-23521","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["fsck.c"],"commits":["https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404","https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46","https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76"],"basis":"shared function","functions":["fsck_gitmodules_fn"]}]},{"from":"CVE-2018-17456","to":"CVE-2022-41903","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["fsck.c"],"commits":["https://github.com/git/git/commit/1a7fd1fb2998002da6e9ff2ee46e1bdd25ee8404","https://github.com/git/git/commit/a124133e1e6ab5c7a9fef6d0e6bcb084e3455b46","https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76"],"basis":"shared function","functions":["fsck_gitmodules_fn"]}]}]}}