Arbitrary file hardlinking via symlink race
Published May 14, 2024 · Updated Nov 4, 2025
Race condition in Git allows local users to hardlink arbitrary user-readable files into a clone's objects directory. During optimized filesystem cloning, Git checks that a source object is not a symlink and then calls a hard-link operation that follows symlinks, leaving a time-of-check/time-of-use window. Exploitation requires the victim to clone an attacker-controlled local repository on the same filesystem while the attacker replaces a checked object with a symlink; the resulting repository gains a hard link to the chosen readable file.
Summary
What happened
Race condition in Git allows local users to hardlink arbitrary user-readable files into a clone's objects directory. During optimized filesystem cloning, Git checks that a source object is not a symlink and then calls a hard-link operation that follows symlinks, leaving a time-of-check/time-of-use window. Exploitation requires the victim to clone an attacker-controlled local repository on the same filesystem while the attacker replaces a checked object with a symlink; the resulting repository gains a hard link to the chosen readable file.
The record
- CVE
- CVE-2024-32021
- Published
- May 14, 2024
- Updated
- Nov 4, 2025
- Vendor
- Git
- Product
- Git
- Classifications
- CWE-547, T1565.001
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- May 14, 2024CVE publishedPublication date reported by the CVE source.
- Nov 4, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <2.39.4
- Affected versionversion=< 2.39.4
- Affected versionversion=>= 2.40.0, < 2.40.2
- Affected versionversion=2.40.0 <2.40.2
- Affected versionversion== 2.41.0
- Affected versionversion=2.41.0 <2.41.1
- Affected versionversion=>= 2.42.0, < 2.42.2
- Affected versionversion=2.42.0 <2.42.2
- Affected versionversion=>= 2.43.0, < 2.43.4
- Affected versionversion=2.43.0 <2.43.4
- Affected versionversion== 2.44.0
- Affected versionversion=2.44.0 <2.44.1
- Affected versionversion== 2.45.0
- Affected versionversion=2.45.0 <2.45.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream local-clone symlink-race proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo