Skip to content
Fencer Vulns
low 3.9

CVE-2024-32021 json

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

published 2024-05-14 2 y ago modified 2026-09-08 2 mo ago also BIT-git-2024-32021 , EUVD-2024-29859 , GHSA-mvxm-9j2h-qjx7

cvss
3.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 63%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami git 2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, 2.44.1, 2.45.1
  • git git 2.39.4, 2.40.2, 2.41.1, 2.42.2, 2.43.4, 2.44.1, 2.45.1
  • git Debian 12 1:2.39.5-0+deb12u1
  • git Debian 14, Debian 13 1:2.45.1-1

debian advisories DEBIAN-CVE-2024-32021

  • git Ubuntu 20.04 LTS 1:2.25.1-1ubuntu3.12
  • git Ubuntu 22.04 LTS 1:2.34.1-1ubuntu1.11
  • git Ubuntu 24.04 LTS 1:2.43.0-1ubuntu7.1
  • git Ubuntu Pro 18.04 LTS 1:2.17.1-1ubuntu0.18+esm1

ubuntu advisories UBUNTU-CVE-2024-32021

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • git RHEL 8 2.43.5-1.el8_10
  • gitk RHEL 8 2.43.5-1.el8_10
  • gitweb RHEL 8 2.43.5-1.el8_10
  • git-all RHEL 8 2.43.5-1.el8_10
  • git-gui RHEL 8 2.43.5-1.el8_10
  • git-svn RHEL 8 2.43.5-1.el8_10
  • git-core RHEL 8 2.43.5-1.el8_10
  • perl-Git RHEL 8 2.43.5-1.el8_10

red hat advisories RHSA-2024:4368RHSA-2024:4084RHSA-2024:4083

  • git Linux Micro 6.0 2.45.1-1.1
  • git SLE Module for Development Tools 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 2.43.0-150600.3.3.1
  • git SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, SLE Micro 5.5 +11 more 2.35.3-150300.10.39.1
  • git SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 2.26.2-27.78.1
  • git SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLE High Performance Computing 15 SP2-LTSS 2.26.2-150000.56.1

suse advisories SUSE-SU-2025:20049-1SUSE-SU-2025:0197-1SUSE-SU-2024:2277-1SUSE-SU-2024:1854-1SUSE-SU-2024:1807-2SUSE-SU-2024:1807-1

  • git openSUSE Tumbleweed 2.45.1-1.1

opensuse advisories openSUSE-SU-2024:13968-1

  • git AlmaLinux 9 2.43.5-1.el9_4
  • gitk AlmaLinux 9 2.43.5-1.el9_4
  • gitweb AlmaLinux 9 2.43.5-1.el9_4
  • git-all AlmaLinux 9 2.43.5-1.el9_4
  • git-gui AlmaLinux 9 2.43.5-1.el9_4
  • git-svn AlmaLinux 9 2.43.5-1.el9_4
  • git-core AlmaLinux 9 2.43.5-1.el9_4
  • perl-Git AlmaLinux 9 2.43.5-1.el9_4

almalinux advisories ALSA-2024:4083ALSA-2024:4084

  • git Rocky Linux 9 2.43.5-1.el9_4
  • git Rocky Linux 8 2.43.5-1.el8_10

rocky linux advisories RLSA-2024:4083RLSA-2024:4084

  • git Alpine 3.17 2.39.5-r0
  • git Alpine 3.18 2.40.3-r0
  • git Alpine 3.19 2.43.4-r0
  • git Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 2.45.1-r0

alpine advisories ALPINE-CVE-2024-32021

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • git CBL-Mariner 2.0 2.39.4-1
  • git Azure Linux 3.0 2.45.2-1

azure linux advisories AZL-42013AZL-43042

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-32021 updated cvss 3.9

git: symlink bypass

  • Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more Red Hat Enterprise Linux 7 git, gitk, git-hg, git-p4, gitweb, git-all, +12 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 10 git Red Hat Fuse 7 git Red Hat Software Collections rh-git227-git, rh-git227-gitk, rh-git227-git-p4, rh-git227-gitweb, rh-git227-git-all, rh-git227-git-cvs, +10 more
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 8) git 2.43.5-1.el8_10, gitk 2.43.5-1.el8_10, gitweb 2.43.5-1.el8_10, git-all 2.43.5-1.el8_10, git-gui 2.43.5-1.el8_10, git-svn 2.43.5-1.el8_10, +8 more
    fixed: vendor fix RHSA-2024:4084
  • Red Hat Enterprise Linux AppStream (v. 9) git 2.43.5-1.el9_4, gitk 2.43.5-1.el9_4, gitweb 2.43.5-1.el9_4, git-all 2.43.5-1.el9_4, git-gui 2.43.5-1.el9_4, git-svn 2.43.5-1.el9_4, +8 more
    fixed: vendor fix RHSA-2024:4083
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) git 2.39.5-1.el9_2, gitk 2.39.5-1.el9_2, gitweb 2.39.5-1.el9_2, git-all 2.39.5-1.el9_2, git-gui 2.39.5-1.el9_2, git-svn 2.39.5-1.el9_2, +8 more
    fixed: vendor fix RHSA-2024:4368

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/git/git/security/advisories/GHSA-mvxm-9j2h-qjx7 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 3.9 CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L
NVD 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
OSV 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
bitnami 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
>=2.45.0, <2.45.1
2.39.4
2.40.2
2.41.1
2.42.2
2.43.4
2.44.1
2.45.1

Affected products

  • git git

Classification

Weakness
  • CWE-547 Use of Hard-coded, Security-relevant Constants

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.