# CVE-2024-32021: Local Git clone may hardlink arbitrary user-readable files into the new repository's "objects/" directory

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-14T19:15:28.534Z
- Modified: 2026-09-08T08:47:33.599Z
- Also known as: BIT-GIT-2024-32021, GHSA-mvxm-9j2h-qjx7
- Weaknesses: CWE-547
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- git 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; before 2.39.4; from 2.40.0 before 2.40.2; from 2.41.0 before 2.41.1; from 2.42.0 before 2.42.2; from 2.43.0 before 2.43.4; and 2 more
- git-scm git: before 2.39.4; from 2.40.0 before 2.40.2; from 2.42.0 before 2.42.2; from 2.43.0 before 2.43.4; 2.41.0; 2.44.0; 2.45.0
- fedoraproject fedora: 40
- debian debian_linux: 10.0; 11.0
- git (Bitnami): before 2.39.4; from 2.40.0 before 2.40.2; from 2.41.0 before 2.41.1; from 2.42.0 before 2.42.2; from 2.43.0 before 2.43.4; from 2.44.0 before 2.44.1; from 2.45.0 before 2.45.1

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/git/git/security/advisories/GHSA-mvxm-9j2h-qjx7> (exploit, advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/> (advisory, mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2024/05/14/2> (advisory, mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32021> (web)

## Sources

- CVE List: [CVE-2024-32021](https://www.cve.org/CVERecord?id=CVE-2024-32021), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-32021](https://nvd.nist.gov/vuln/detail/CVE-2024-32021), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GIT-2024-32021](https://osv.dev/vulnerability/BIT-GIT-2024-32021), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-32021 · Whole record: https://cve.day/CVE-2024-32021.json · Rebuilt by cve.day 2026-11-25T22:58:40.356Z
