Local Git clone may hardlink arbitrary user-readable files into the new repository's "objects/" directory
Overview
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.
- Published
- 5/14/2024
- Last modified
- 6/17/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
git git-scm | < 2.39.4 | Verify advisory | Source |
git git-scm | ≥ 2.40.0, < 2.40.2 | Verify advisory | Source |
git git-scm | ≥ 2.42.0, < 2.42.2 | Verify advisory | Source |
git git-scm | ≥ 2.43.0, < 2.43.4 | Verify advisory | Source |
git git-scm | 2.41.0 | Verify advisory | Source |
git git-scm | 2.44.0 | Verify advisory | Source |
git git-scm | 2.45.0 | Verify advisory | Source |
fedora fedoraproject | 40 | Verify advisory | Source |
debian linux debian | 10.0 | Verify advisory | Source |
debian linux debian | 11.0 | Verify advisory | Source |
git git | = 2.45.0 | Verify advisory | Source |
git git | = 2.44.0 | Verify advisory | Source |
git git | >= 2.43.0, < 2.43.4 | Verify advisory | Source |
git git | >= 2.42.0, < 2.42.2 | Verify advisory | Source |
git git | = 2.41.0 | Verify advisory | Source |
git git | >= 2.40.0, < 2.40.2 | Verify advisory | Source |
git git | < 2.39.4 | Verify advisory | Source |
git git | < 2.39.4 | Verify advisory | Source |
git git | ≥ 2.40.0, < 2.40.2 | Verify advisory | Source |
git git | ≥ 2.41.0, < 2.41.1 | Verify advisory | Source |
git git | ≥ 2.42.0, < 2.42.2 | Verify advisory | Source |
git git | ≥ 2.43.0, < 2.43.4 | Verify advisory | Source |
git git | ≥ 2.44.0, < 2.44.1 | Verify advisory | Source |
git git | ≥ 2.45.0, < 2.45.1 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 7.1. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.