CVE-2024-32021: Local Git clone may hardlink arbitrary user-readable files into the new repository's "objects/" directory
Vulnerability summary
CVE-2024-32021 is a high (CVSS 7.1) vulnerability in debian debian_linux. EPSS estimates a 1.02% chance of exploitation in the next 30 days, higher than 64.6% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 16 · Related 11Timeline
- 14-05-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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, when cloning a local source repository that contains symlinks via the filesystem, Git may create hardlinks to arbitrary user-readable files on the same filesystem as the target repository in the `objects/` directory. Cloning a local repository over the filesystem may creating hardlinks to arbitrary user-owned files on the same filesystem in the target Git repository's `objects/` directory. When cloning a repository over the filesystem (without explicitly specifying the `file://` protocol or `--no-local`), the optimizations for local cloning will be used, which include attempting to hard link the object files instead of copying them. While the code includes checks against symbolic links in the source repository, which were added during the fix for CVE-2022-39253, these checks can still be raced because the hard link operation ultimately follows symlinks. If the object on the filesystem appears as a file during the check, and then a symlink during the operation, this will allow the adversary to bypass the check and create hardlinks in the destination objects directory to arbitrary, user-readable files. 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.
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA3.9LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated3.9LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated3.9LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:LDiffers
EPSS trend
Probability
1.02%
Chance of exploitation in the next 30 days
Percentile
65%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.02% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGit
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- git< 1:2.39.5-0+deb12u1 | < 1:2.45.1-1
- debian_linuxEOL10.0 | 11.0
Alpine1 product
- git≥ 2.40.0, < 2.39.5-r0 | ≥ 2.40.0, < 2.43.4-r0 | ≥ 2.40.0, < 2.45.1-r0 | < 2.39.5-r0 | ≥ 2.40.0, < 2.40.3-r0 | ≥ 2.43.0, < 2.43.4-r0 | ≥ 2.43.0, < 2.45.1-r0
Chainguard1 product
- git< 2.45.1-r0
Fedoraproject1 product
- fedoraEOL40
Git1 product
- git= 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
Git-scm1 product
- gitEOL< 2.39.4 | ≥ 2.40.0, < 2.40.2 | ≥ 2.42.0, < 2.42.2 | ≥ 2.43.0, < 2.43.4 | 2.41.0 | 2.44.0 | 2.45.0
Ubuntu1 product
- git< 1:2.17.1-1ubuntu0.18+esm1 | < 1:2.25.1-1ubuntu3.12 | < 1:2.34.1-1ubuntu1.11 | < 1:2.43.0-1ubuntu7.1
Wolfi1 product
- git< 2.45.1-r0
8 vendors · 9 products
References
13 links- github.com/git/git/security/advisories/GHSA-mvxm-9j2h-qjx7X Refsource CONFIRMREPORTAdvisoryExploitVendor Advisory