{"id":"CVE-2024-32004","published":"2024-05-14T18:46:32Z","modified":"2025-11-04T16:12:10Z","title":"Git vulnerable to Remote Code Execution while cloning special-crafted local repositories","vendor":"git","product":"git","tier":"tail","description":{"text":"Git is a revision control system. Prior to versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4, an attacker can prepare a local repository in such a way that, when cloned, will execute arbitrary code during the operation. The problem has been patched in versions 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4. As a workaround, avoid cloning repositories from untrusted sources.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01351,"percentile":0.72202,"provenance":"source"},"cwes":[{"id":"CWE-114","name":"Process Control"}],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","tags":["x_refsource_MISC"]},{"url":"https://git-scm.com/docs/git-clone","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/14/2","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html","tags":[]}],"priority":{"score":20.2,"factors":[{"name":"EPSS percentile","points":14.44},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"git","affectedVersions":[{"vendor":"git","product":"git","versions":["= 2.45.0","= 2.44.0",">= 2.43.0, < 2.43.4",">= 2.42.0, < 2.42.2","= 2.41.0",">= 2.40.0, < 2.40.2","< 2.39.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-05-15T17:59:29.364044Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-29844","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-git-cve-2018-17456","parents":[{"from":"CVE-2021-21300","to":"CVE-2024-32004","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cache.h"],"commits":["https://github.com/git/git/commit/684dd4c2b414bcf648505e74498a608f28de4592","https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2024-32004","to":"CVE-2024-32465","relation":"incomplete-fix","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"But there are circumstances where the fixes for CVE-2024-32004 are not enough: For example, when obtaining a `.zip` file containing a full copy of a Git repository, it should not be trusted by default to be safe, as e.g. hooks could be co…","from":"CVE.org","in":"CVE-2024-32465"},{"kind":"same-code","provenance":"machine","files":["t/t0411-clone-from-partial.sh"],"commits":["https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","https://github.com/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7"],"basis":"rarely changed file"}]}]}}