7.1

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

Analyzed
AliasesALPINE-CVE-2024-32021UBUNTU-CVE-2024-32021DEBIAN-CVE-2024-32021
Published 14-05-2024Last modified 04-11-2025

Vulnerability summary

CVE-2024-32021 is a high (CVSS 7.1) vulnerability in debian debian_linux. EPSS estimates a 1.02% chance of exploitation in the next 30 days, higher than 64.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v3.1 (NVD)
EPSS score
1.02%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 16 · Related 11

Timeline

  1. 14-05-2024
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

1.02%

Chance of exploitation in the next 30 days

Percentile

65%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.02% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Git

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • git< 1:2.39.5-0+deb12u1 | < 1:2.45.1-1
  • debian_linuxEOL10.0 | 11.0
Alpine1 product
  • git≥ 2.40.0, < 2.39.5-r0 | ≥ 2.40.0, < 2.43.4-r0 | ≥ 2.40.0, < 2.45.1-r0 | < 2.39.5-r0 | ≥ 2.40.0, < 2.40.3-r0 | ≥ 2.43.0, < 2.43.4-r0 | ≥ 2.43.0, < 2.45.1-r0
Chainguard1 product
  • git< 2.45.1-r0
Fedoraproject1 product
Git1 product
  • 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
Git-scm1 product
  • gitEOL< 2.39.4 | ≥ 2.40.0, < 2.40.2 | ≥ 2.42.0, < 2.42.2 | ≥ 2.43.0, < 2.43.4 | 2.41.0 | 2.44.0 | 2.45.0
Ubuntu1 product
  • git< 1:2.17.1-1ubuntu0.18+esm1 | < 1:2.25.1-1ubuntu3.12 | < 1:2.34.1-1ubuntu1.11 | < 1:2.43.0-1ubuntu7.1
Wolfi1 product
  • git< 2.45.1-r0

8 vendors · 9 products

References

13 links
Show all 13 references