{"id":"CVE-2024-32004","summary":"Git vulnerable to Remote Code Execution while cloning special-crafted local repositories","details":"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.","aliases":["BIT-git-2024-32004","GHSA-xfc6-vwr8-r389"],"modified":"2026-08-03T14:27:53.161450Z","published":"2024-05-14T18:46:32.192Z","related":["ALSA-2024:4083","ALSA-2024:4084","SUSE-SU-2024:1807-1","SUSE-SU-2024:1807-2","SUSE-SU-2024:1854-1","SUSE-SU-2024:2277-1","SUSE-SU-2025:0197-1","SUSE-SU-2025:20049-1","openSUSE-SU-2024:13968-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-114"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32004.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/05/14/2"},{"type":"WEB","url":"https://git-scm.com/docs/git-clone"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32004.json"},{"type":"ADVISORY","url":"https://github.com/git/git/security/advisories/GHSA-xfc6-vwr8-r389"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32004"},{"type":"FIX","url":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/git/git","events":[{"introduced":"0"},{"fixed":"47b6d90e91835082010da926f6a844d4441c57a6"},{"introduced":"73876f4861cd3d187a4682290ab75c9dccadbc56"},{"fixed":"b9b439e0e3a543ddb920e4cf8d3c9d53f730111f"},{"introduced":"43c8a30d150ecede9709c1f2527c8fba92c65f40"},{"fixed":"babb4e5d7107ba730beff8d224e4bcf065533e0b"},{"introduced":"564d0252ca632e0264ed670534a51d18a689ef5d"},{"fixed":"1f2e64e22dee75db96b92d526d14003ba59a154e"},{"introduced":"fe86abd7511a9a6862d5706c6fa1d9b57a63ba09"},{"fixed":"f4aa8c8bb11dae6e769cd930565173808cbb69c8"}],"database_specific":{"cpe":["cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","cpe:2.3:a:git-scm:git:2.41.0:*:*:*:*:*:*:*","cpe:2.3:a:git-scm:git:2.44.0:*:*:*:*:*:*:*","cpe:2.3:a:git-scm:git:2.45.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"2.39.4"},{"introduced":"2.40.0"},{"fixed":"2.40.2"},{"introduced":"2.42.0"},{"fixed":"2.42.2"},{"introduced":"2.43.0"},{"fixed":"2.43.4"},{"introduced":"2.41.0"},{"last_affected":"2.41.0"},{"introduced":"2.44.0"},{"last_affected":"2.44.0"},{"introduced":"2.45.0"},{"last_affected":"2.45.0"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["2.41.0","2.44.0","2.45.0","= 2.41.0","= 2.44.0","= 2.45.0","v2.33.0","v2.43.0","v2.42.1","v2.43.3","v2.40.1","v2.39.3","v2.43.2","v2.42.0","v2.43.1","v2.40.0","v2.39.0-rc0","v2.39.2","v2.39.0","v2.39.1","v2.39.0-rc1","v2.39.0-rc2","v2.38.0","v2.38.0-rc2","v2.38.0-rc1","v2.38.0-rc0","v2.37.0-rc0","v2.37.0","v2.36.0","v2.37.0-rc2","v2.37.0-rc1","v2.36.0-rc2","v2.36.0-rc1","v2.36.0-rc0","v2.32.0","v2.34.0","v2.35.0","v2.35.0-rc2","v2.35.0-rc1","v2.35.0-rc0","v2.30.0","v2.34.0-rc2","v2.34.0-rc1","v2.34.0-rc0","v2.33.0-rc1","v2.33.0-rc2","v2.33.0-rc0","v2.31.0","v2.32.0-rc3","v2.32.0-rc2","v2.32.0-rc1","v2.32.0-rc0","v2.31.0-rc2","v2.31.0-rc1","v2.31.0-rc0","v2.28.0","v2.27.0","v2.30.0-rc1","v2.30.0-rc2","v2.30.0-rc0","v2.29.0","v2.29.0-rc2","v2.29.0-rc1","v2.29.0-rc0","v2.28.0-rc1","v2.28.0-rc2","v2.26.0","v2.28.0-rc0","v2.27.0-rc2","v2.27.0-rc0","v2.27.0-rc1","v2.25.0","v2.24.0","v2.26.0-rc2","v2.26.0-rc1","v2.26.0-rc0","v2.25.0-rc2","v2.25.0-rc1","v2.25.0-rc0","v2.22.0","v2.23.0","v2.21.0","v2.24.0-rc1","v2.24.0-rc2","v2.24.0-rc0","v2.23.0-rc2","v2.23.0-rc1","v2.23.0-rc0","v2.22.0-rc3","v2.22.0-rc2","v2.22.0-rc1","v2.22.0-rc0","v2.20.0","v2.21.0-rc2","v2.21.0-rc1","v2.15.0","v2.21.0-rc0","v2.17.0","v2.18.0","v2.20.0-rc2","v2.20.0-rc1","v2.20.0-rc0","v2.19.0","v2.19.0-rc2","v2.19.0-rc1","v2.19.0-rc0","v2.18.0-rc2","v2.18.0-rc1","v2.18.0-rc0","v2.17.0-rc2","v2.17.0-rc1","v2.17.0-rc0","v2.16.0-rc0","v2.16.0","v2.16.0-rc1","v2.16.0-rc2","v2.15.0-rc2","v2.15.0-rc1","v2.15.0-rc0","v2.14.0","v2.14.0-rc1","v2.11.0","v2.12.0","v2.13.0","v2.14.0-rc0","v2.13.0-rc2","v2.13.0-rc1","v2.13.0-rc0","v2.10.0","v2.12.0-rc2","v2.12.0-rc1","v2.12.0-rc0","v2.11.0-rc3","v2.9.0","v2.11.0-rc2","v2.11.0-rc1","v2.11.0-rc0","v2.10.0-rc2","v2.10.0-rc1","v2.10.0-rc0","v2.7.0","v2.9.0-rc2","v2.8.0","v2.9.0-rc1","v2.9.0-rc0","v2.8.0-rc4","v2.8.0-rc1","v2.8.0-rc3","v2.8.0-rc2","v2.8.0-rc0","v2.6.0","v2.7.0-rc3","v2.4.0","v2.7.0-rc1","v2.7.0-rc2","v2.0.0","v2.7.0-rc0","v2.6.0-rc1","v2.6.0-rc3","v2.6.0-rc2","v2.5.0","v2.6.0-rc0","v2.2.0","v2.5.0-rc3","v2.5.0-rc0","v2.5.0-rc2","v2.5.0-rc1","v2.4.0-rc0","v2.4.0-rc3","v2.4.0-rc2","v2.4.0-rc1","v2.3.0","v2.3.0-rc2","v2.3.0-rc1","v2.3.0-rc0","v1.8.5","v2.2.0-rc1","v2.2.0-rc3","v2.2.0-rc2","v2.1.0","v2.2.0-rc0","v2.1.0-rc2","v2.1.0-rc1","v2.1.0-rc0","v1.9.0","v2.0.0-rc2","v2.0.0-rc4","v2.0.0-rc3","v2.0.0-rc1","v2.0.0-rc0","v1.9-rc0","v1.9.0-rc3","v1.9-rc2","v1.9-rc1","v1.8.5-rc3","v1.8.5-rc2","v1.8.5-rc0","v1.8.5-rc1","v1.8.4","v1.8.3","v1.8.4-rc4","v1.8.4-rc3","v1.8.4-rc2","v1.8.4-rc1","v1.8.4-rc0","v1.8.2","v1.8.1","v1.7.11","v1.8.3-rc0","v1.8.3-rc3","v1.8.3-rc2","v1.8.3-rc1","v1.8.2-rc3","v1.8.2-rc2","v1.8.2-rc1","v1.8.2-rc0","v1.8.0","v1.8.1-rc2","v1.8.1-rc3","v1.7.12","v1.7.9","v1.8.1-rc1","v1.8.1-rc0","v1.8.0-rc3","v1.8.0-rc2","v1.8.0-rc1","v1.8.0-rc0","v1.7.3","v1.7.12-rc3","v1.7.12-rc2","v1.7.11-rc1","v1.7.12-rc1","v1.7.12-rc0","v1.7.11-rc3","v1.7.11-rc0","v1.7.11-rc2","v1.7.10","v1.7.8","v1.7.10-rc3","v1.7.10-rc4","v1.7.10-rc2","v1.7.10-rc1","v1.7.10-rc0","v1.7.7","v1.7.9-rc2","v1.7.9-rc1","v1.7.9-rc0","v1.7.4","v1.7.5","v1.7.8-rc2","v1.7.8-rc4","v1.7.8-rc3","v1.7.0","v1.7.8-rc1","v1.7.6","v1.7.8-rc0","v1.7.7-rc1","v1.7.7-rc3","v1.7.7-rc2","v1.7.7-rc0","v1.6.0","v1.7.6-rc3","v1.7.6-rc2","v1.7.2-rc1","v1.7.6-rc1","v1.7.6-rc0","v1.6.6","v1.7.5-rc3","v1.7.5-rc2","v1.7.5-rc1","v1.7.5-rc0","v1.7.4-rc1","v1.7.4-rc3","v1.7.4-rc2","v1.7.4-rc0","v1.7.1","v1.7.3.1","v1.7.3-rc2","v1.7.3-rc1","v1.7.3-rc0","v1.7.2","v1.7.2-rc3","v1.7.2-rc2","v1.7.2-rc0","v1.7.1-rc2","v1.7.1-rc1","v1.7.1-rc0","v1.7.0-rc2","v1.6.3","v1.6.5","v1.7.0-rc1","v1.7.0-rc0","v1.6.6-rc1","v1.6.1-rc1","v1.6.6-rc4","v1.6.6-rc3","v1.6.6-rc2","v1.6.6-rc0","v1.6.5-rc3","v1.6.5-rc2","v1.6.5-rc1","v1.6.5-rc0","v1.6.4","v1.6.4-rc3","v1.6.4-rc2","v1.6.4-rc1","v1.6.4-rc0","v1.6.2","v1.6.3-rc4","v1.6.3-rc3","v1.6.3-rc2","v1.6.3-rc1","v1.6.3-rc0","v1.6.1","v1.6.2-rc2","v1.6.2-rc1","v1.6.2-rc0","v1.6.1-rc4","v1.6.1-rc3","v1.6.1-rc2","v1.6.0-rc3","v1.6.0-rc2","v1.6.0-rc1","v1.6.0-rc0","v1.5.6","v1.5.6-rc3","v1.5.6-rc2","v1.5.6-rc1","v1.5.6-rc0","v1.5.5","v1.5.5-rc3","v1.5.5-rc2","v1.5.5-rc1","v1.5.5-rc0","v1.5.4","v1.5.4-rc5","v1.5.4-rc4","v1.5.4-rc3","v1.5.4-rc2","v1.5.4-rc1","v1.5.4-rc0","v1.5.3.1","v1.5.3","v1.5.3-rc7","v1.5.3-rc6","v1.5.3-rc5","v1.5.3-rc4","v1.5.3-rc3","v1.5.3-rc2","v1.5.3-rc1","v1.5.3-rc0","v1.5.2","v1.5.2-rc3","v1.5.2-rc2","v1.5.2-rc1","v1.5.2-rc0","v1.5.1","v1.5.1-rc3","v1.5.1-rc2","v1.5.1-rc1","v1.5.0","v1.5.0-rc4","v1.5.0-rc3","v1.5.0-rc2","v1.5.0-rc1","v1.5.0-rc0","v1.4.4.1","v1.4.4","v1.4.4-rc2","v1.4.4-rc1","v1.4.3","v1.4.3-rc3","v1.4.3-rc2","v1.4.3-rc1","v1.4.2","v1.4.2-rc4","v1.4.2-rc3","v1.4.2-rc2","v1.4.2-rc1","v1.4.1","v1.4.1-rc2","v1.4.1-rc1","v1.3.0-rc1","v1.2.0","v1.1.0","v1.0.0","v1.0rc6","v0.99.9n","v1.0rc5","v0.99.9m","v1.0rc4","v0.99.9l","v0.99.9k","v1.0rc3","v0.99.9j","v1.0rc2","v0.99.9i","v1.0rc1","v0.99.9h","v0.99.9g","v0.99.9f","v0.99.9e","v0.99.9d","v0.99.9c","v0.99.9b","v0.99.9a","v0.99.8g","v0.99.8f","v0.99.8e","v0.99.8d","v0.99.8c","v0.99.8b","v0.99.8a","v0.99.8","v0.99.7","v0.99.6","v0.99.5","v0.99.4","v0.99.3","v0.99.2","v0.99.1","v0.99"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-32004.json","vanir_signatures_modified":"2026-08-03T14:27:53Z","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["45294003144689119548277046678289316083","309352054631505652906559086720521916691","227127197232322950683898198590264096921","193314351807589747373269628427310562660","177745855262106223516038815373878749657","300642084120798625785048215664597812800","133722532631573321917649465671677779790","210790909159161503000163879877459222109"],"threshold":0.9},"id":"CVE-2024-32004-3ab715ca","signature_type":"Line","signature_version":"v1","source":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","target":{"file":"path.c"}},{"id":"CVE-2024-32004-436d3789","signature_type":"Function","signature_version":"v1","source":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","target":{"file":"path.c","function":"enter_repo"},"deprecated":false,"digest":{"function_hash":"65755541231955128684927330193945321426","length":1436}},{"source":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","target":{"file":"cache.h"},"deprecated":false,"digest":{"line_hashes":["52887605817421439801183684811235498754","33419222072235022558223135471097715196","96187727428552915029369741612525680600"],"threshold":0.9},"id":"CVE-2024-32004-4e1789c9","signature_type":"Line","signature_version":"v1"},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["263380987938213441223031154487962457493","27029750263920257402586502723201047642","313249096040047857051149013071639811598"]},"id":"CVE-2024-32004-c303070a","signature_type":"Line","signature_version":"v1","source":"https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8","target":{"file":"setup.c"}}]}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}