{"id":"CVE-2024-32020","summary":"Cloning local Git repository by untrusted user allows the untrusted user to modify objects in the cloned repository at will","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, local clones may end up hardlinking files into the target repository's object database when source and target repository reside on the same disk. If the source repository is owned by a different user, then those hardlinked files may be rewritten at any point in time by the untrusted user. Cloning local repositories will cause Git to either copy or hardlink files of the source repository into the target repository. This significantly speeds up such local clones compared to doing a \"proper\" clone and saves both disk space and compute time. When cloning a repository located on the same disk that is owned by a different user than the current user we also end up creating such hardlinks. These files will continue to be owned and controlled by the potentially-untrusted user and can be rewritten by them at will in the future. 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.","aliases":["BIT-git-2024-32020","GHSA-5rfh-556j-fhgj"],"modified":"2026-08-12T15:15:13.882070Z","published":"2024-05-14T18:54:08.184Z","related":["ALSA-2024:4083","ALSA-2024:4084","CGA-gcwc-jcwv-vhh5","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-281"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32020.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/05/14/2"},{"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-32020.json"},{"type":"ADVISORY","url":"https://github.com/git/git/security/advisories/GHSA-5rfh-556j-fhgj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32020"},{"type":"FIX","url":"https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d"},{"type":"FIX","url":"https://github.com/git/git/commit/9e65df5eab274bf74c7b570107aacd1303a1e703"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/git-for-windows/git","events":[{"introduced":"0"},{"fixed":"2868283f22fa5468d7bcf2abc47d981e1332d4ff"},{"introduced":"4b968f3ea3b32a7bc50846bab49f3f381841d297"},{"fixed":"8e7356d297c1d56ea58dbd5fd5a44931f23e3564"},{"introduced":"ad0bbfffa543db6979717be96df630d3e5741331"},{"last_affected":"b5d0511969ccd9ab86395c37e5a7619d8b4e7c32"}],"database_specific":{"cpe":["cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","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.43.0"},{"fixed":"2.43.4"},{"introduced":"2.44.0"},{"last_affected":"2.44.0"},{"introduced":"2.45.0"},{"last_affected":"2.45.0"}],"source":["CPE_RANGE","CPE_STRING"]}},{"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":"1204e1a824c34071019fe106348eaa6d88f9528d"},{"fixed":"9e65df5eab274bf74c7b570107aacd1303a1e703"}],"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.45.0.windows.1","v2.39.3.windows.1","v2.43.0.windows.1","v2.41.0-rc0","v2.39.2.windows.1","v2.30.0-rc2","v2.27.0-rc1","v2.21.0","v2.22.0-rc0","v2.15.0","v2.17.0","v2.18.0","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-rc2","v1.6.3-rc1","v1.6.3-rc0","v1.6.3-rc3","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-rc2","v1.5.0-rc3","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","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-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.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.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.20.0","v2.21.0-rc2","v2.21.0-rc1","v2.21.0-rc0","v2.20.0-rc2","v2.20.0-rc1","v2.20.0-rc0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32020.json","vanir_signatures_modified":"2026-08-12T15:15:13Z","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d","target":{"file":"builtin/clone.c","function":"copy_or_link_directory"},"deprecated":false,"digest":{"function_hash":"338824394489475896669267150903609271361","length":1999},"id":"CVE-2024-32020-9c1daeea"},{"target":{"file":"builtin/clone.c"},"deprecated":false,"digest":{"line_hashes":["113762676709818900467595579001002480038","305204982989399005681611735105747202496","254375693370670175441621560204799376929"],"threshold":0.9},"id":"CVE-2024-32020-bbb7f7b3","signature_type":"Line","signature_version":"v1","source":"https://github.com/git/git/commit/1204e1a824c34071019fe106348eaa6d88f9528d"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L"}]}