Repository corruption via cross-owner object hardlinks
Published May 14, 2024 · Updated Feb 13, 2025
Improper permission preservation in Git allows local users to corrupt cloned repository objects through unsafe local clones. The copy_or_link_directory path can hardlink object files from a source repository owned by another user, leaving those files writable through the source after cloning completes. Exploitation requires a victim to perform a local clone from an attacker-controlled repository on the same disk; subsequent object rewriting damages integrity and can make the clone unusable.
Summary
What happened
Improper permission preservation in Git allows local users to corrupt cloned repository objects through unsafe local clones. The copy_or_link_directory path can hardlink object files from a source repository owned by another user, leaving those files writable through the source after cloning completes. Exploitation requires a victim to perform a local clone from an attacker-controlled repository on the same disk; subsequent object rewriting damages integrity and can make the clone unusable.
The record
- CVE
- CVE-2024-32020
- Published
- May 14, 2024
- Updated
- Feb 13, 2025
- Vendor
- Git
- Product
- Git
- Classifications
- CWE-281, T1565.001
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 14, 2024CVE publishedPublication date reported by the CVE source.
- Feb 13, 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
- 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 <2.43.4
- Affected versionversion== 2.44.0
- Affected versionversion=2.44.0
- Affected versionversion== 2.45.0
- Affected versionversion=2.45.0
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 hardlink 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