{"id":"CVE-2024-32004","state":"PUBLISHED","title":"Git vulnerable to Remote Code Execution while cloning special-crafted local repositories","description":"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.","publishedAt":"2024-05-14T18:46:32.192Z","updatedAt":"2025-11-04T16:12:10.670Z","severity":{"score":8.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["git git"],"affected":[{"vendor":"git","product":"git","versions":[{"version":"= 2.45.0","status":"affected"},{"version":"= 2.44.0","status":"affected"},{"version":">= 2.43.0, < 2.43.4","status":"affected"},{"version":">= 2.42.0, < 2.42.2","status":"affected"},{"version":"= 2.41.0","status":"affected"},{"version":">= 2.40.0, < 2.40.2","status":"affected"},{"version":"< 2.39.4","status":"affected"}]}],"references":["https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389","https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","https://git-scm.com/docs/git-clone","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/","http://www.openwall.com/lists/oss-security/2024/05/14/2","https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html","https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html"],"weaknesses":["CWE-114"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/32xxx/CVE-2024-32004.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-32004","state":"PUBLISHED","datePublished":"2024-05-14T18:46:32.192Z","dateUpdated":"2025-11-04T16:12:10.670Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-04-08T13:48:37.493Z"},"containers":{"cna":{"title":"Git vulnerable to Remote Code Execution while cloning special-crafted local repositories","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"git","product":"git","versions":[{"version":"= 2.45.0","status":"affected"},{"version":"= 2.44.0","status":"affected"},{"version":">= 2.43.0, < 2.43.4","status":"affected"},{"version":">= 2.42.0, < 2.42.2","status":"affected"},{"version":"= 2.41.0","status":"affected"},{"version":">= 2.40.0, < 2.40.2","status":"affected"},{"version":"< 2.39.4","status":"affected"}]}],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389","name":"https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","name":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","tags":["x_refsource_MISC"]},{"url":"https://git-scm.com/docs/git-clone","name":"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/"},{"url":"http://www.openwall.com/lists/oss-security/2024/05/14/2"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-114","lang":"en","description":"CWE-114: Process Control","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-06-26T10:06:05.293Z"},"source":{"advisory":"GHSA-xfc6-vwr8-r389","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389","name":"https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","name":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://git-scm.com/docs/git-clone","name":"https://git-scm.com/docs/git-clone","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/14/2","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-04T16:12:10.670Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"2.45.0","status":"affected"}],"cpes":["cpe:2.3:a:git:git:2.45.0:*:*:*:*:*:*:*"]},{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"2.44.0","status":"affected"}],"cpes":["cpe:2.3:a:git:git:2.44.0:*:*:*:*:*:*:*"]},{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"2.43.0","status":"affected","lessThan":"2.43.4","versionType":"custom"}],"cpes":["cpe:2.3:a:git:git:2.43.0:*:*:*:*:*:*:*"]},{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"2.42.0","status":"affected","lessThan":"2.42.2","versionType":"custom"}],"cpes":["cpe:2.3:a:git:git:2.42.0:*:*:*:*:*:*:*"]},{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"2.41.0","status":"affected"}],"cpes":["cpe:2.3:a:git:git:2.41.0:*:*:*:*:*:*:*"]},{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"2.40.0","status":"affected","lessThan":"2.40.2","versionType":"custom"}],"cpes":["cpe:2.3:a:git:git:2.40.0:*:*:*:*:*:*:*"]},{"vendor":"git","product":"git","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"2.39.4","versionType":"custom"}],"cpes":["cpe:2.3:a:git:git:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-05-15T17:59:29.364044Z","id":"CVE-2024-32004","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-09T18:41:23.817Z"}}]}}}