CVE-2024-32021 in Debian Linux and 3 more products
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/`...
Affects 4 products from 4 vendors. Facts below cite their sources.
Requires local access, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 10.0 11.0 |
| Fedoraproject | Fedora | 40 |
| Git | Git | < 2.39.4 ≥ 2.40.0, < 2.40.2 ≥ 2.41.0, < 2.41.1 ≥ 2.42.0, < 2.42.2 ≥ 2.43.0, < 2.43.4 ≥ 2.44.0, < 2.44.1+1 more≥ 2.45.0, < 2.45.1 |
| Git-Scm | Git | 2.41.0 2.44.0 2.45.0 < 2.39.4 ≥ 2.40.0, < 2.40.2 ≥ 2.42.0, < 2.42.2+1 more≥ 2.43.0, < 2.43.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-32021 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-191714-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| Published | 2024-05-14 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-547: CWE-547
Analysis AI-written, not human-reviewed
Git versions prior to 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4 are vulnerable to a symlink attack when cloning a local source repository that contains symlinks. This can lead to the creation of hardlinks to arbitrary user-readable files in the `objects/` directory.
An attacker with access to the local filesystem can create a malicious repository with symlinks pointing to sensitive files. When a user clones this repository, Git may create hardlinks to these files, potentially exposing their contents.
Questions
What is CVE-2024-32021?
Git versions prior to 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4 are vulnerable to a symlink attack when cloning a local source repository that contains symlinks. This can lead to the creation of hardlinks to arbitrary user-readable files in the `objects/` directory.
What is the CVSS score for CVE-2024-32021?
CVE-2024-32021 has CVSS 7.1 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N. EPSS: 0.5%.
Is CVE-2024-32021 actively exploited?
No confirmed active exploitation of CVE-2024-32021 as of 2026-09-25.
How do I remediate CVE-2024-32021?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2024-32021?
CVE-2024-32021 affects Debian Debian Linux; Fedoraproject Fedora; Git Git; Git-Scm Git.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.