CVE-2024-32021
published low CVSS 3.1 · 3.9Local Git clone may hardlink arbitrary user-readable files into the new repository's "objects/" directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | Affected | Not stated | GitHub_M |
| git | — | git0 to < 2.39.4 · 2.40.0 to < 2.40.2 · 2.41.0 to < 2.41.1 · 2.42.0 to < 2.42.2 · 2.43.0 to < 2.43.4 · 2.44.0 to < 2.44.1 · 2.45.0 to < 2.45.1 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2548 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-623 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | git | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| Alpine Linux | edge | git | Fixed | 2.45.1-r0 | Package fix record |
| Debian | bookworm | git | Advisory build | 1:2.39.5-0+deb12u1 | DSA-5769-1 |
| Oracle Linux | 8 | gitaarch64 | Advisory build | 0:2.43.5-1.el8_10 | ELSA-2024-4084 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | gitaarch64 | Advisory build | 2.43.5-1.el8_10 | RHSA-2024:4084 |
| SUSE / openSUSE | SLE-12-SP5 | gitaarch64 | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| Ubuntu | bionic | git | Advisory build | 1:2.17.1-1ubuntu0.18+esm1 | USN-7023-1 |
| AlmaLinux | 9 | git | Advisory build | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| Alpine Linux | v3.17 | git | Fixed | 2.39.5-r0 | Package fix record |
| Alpine Linux | v3.18 | git | Fixed | 2.40.3-r0 | Package fix record |
| Alpine Linux | v3.19 | git | Fixed | 2.43.4-r0 | Package fix record |
| Alpine Linux | v3.20 | git | Fixed | 2.45.1-r0 | Package fix record |
| Alpine Linux | v3.21 | git | Fixed | 2.45.1-r0 | Package fix record |
| Alpine Linux | v3.22 | git | Fixed | 2.45.1-r0 | Package fix record |
| Alpine Linux | v3.23 | git | Fixed | 2.45.1-r0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 2.45.1-r0 | Package fix record |
| Debian | bullseye | git | Advisory build | 1:2.30.2-1+deb11u3 | DLA-3867-1 |
| Debian | buster | git | Advisory build | 1:2.20.1-2+deb10u9 | DLA-3844-1 |
| Oracle Linux | 8 | gitx86_64 | Advisory build | 0:2.43.5-1.el8_10 | ELSA-2024-4084 |
| Oracle Linux | 9 | gitaarch64 | Advisory build | 0:2.43.5-1.el9_4 | ELSA-2024-4083 |
| Oracle Linux | 9 | gitx86_64 | Advisory build | 0:2.43.5-1.el9_4 | ELSA-2024-4083 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.43.5-1.el8_10 | RHSA-2024:4084 |
| Red Hat Enterprise Linux | RHEL-8 | gits390x | Advisory build | 2.43.5-1.el8_10 | RHSA-2024:4084 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.43.5-1.el8_10 | RHSA-2024:4084 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.43.5-1.el8_10 | RHSA-2024:4084 |
| Red Hat Enterprise Linux | RHEL-9 | gitaarch64 | Advisory build | 2.39.5-1.el9_2 | RHSA-2024:4368 |
| Red Hat Enterprise Linux | RHEL-9 | gitaarch64 | Advisory build | 2.43.5-1.el9_4 | RHSA-2024:4083 |
| Red Hat Enterprise Linux | RHEL-9 | gitppc64le | Advisory build | 2.39.5-1.el9_2 | RHSA-2024:4368 |
| Red Hat Enterprise Linux | RHEL-9 | gitppc64le | Advisory build | 2.43.5-1.el9_4 | RHSA-2024:4083 |
| Red Hat Enterprise Linux | RHEL-9 | gits390x | Advisory build | 2.39.5-1.el9_2 | RHSA-2024:4368 |
| Red Hat Enterprise Linux | RHEL-9 | gits390x | Advisory build | 2.43.5-1.el9_4 | RHSA-2024:4083 |
| Red Hat Enterprise Linux | RHEL-9 | gitsrc | Advisory build | 2.39.5-1.el9_2 | RHSA-2024:4368 |
| Red Hat Enterprise Linux | RHEL-9 | gitsrc | Advisory build | 2.43.5-1.el9_4 | RHSA-2024:4083 |
| Red Hat Enterprise Linux | RHEL-9 | gitx86_64 | Advisory build | 2.39.5-1.el9_2 | RHSA-2024:4368 |
| Red Hat Enterprise Linux | RHEL-9 | gitx86_64 | Advisory build | 2.43.5-1.el9_4 | RHSA-2024:4083 |
| SUSE / openSUSE | SLE-12-SP5 | gitppc64le | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| SUSE / openSUSE | SLE-12-SP5 | gits390x | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitx86_64 | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| SUSE / openSUSE | SLE-15-SP2 | gitaarch64 | Advisory build | 2.26.2-150000.56.1 | SUSE-SU-2024:1854-1 |
| SUSE / openSUSE | SLE-15-SP2 | gitppc64le | Advisory build | 2.26.2-150000.56.1 | SUSE-SU-2024:1854-1 |
| SUSE / openSUSE | SLE-15-SP2 | gits390x | Advisory build | 2.26.2-150000.56.1 | SUSE-SU-2024:1854-1 |
| SUSE / openSUSE | SLE-15-SP2 | gitx86_64 | Advisory build | 2.26.2-150000.56.1 | SUSE-SU-2024:1854-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitaarch64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitppc64le | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP3 | gits390x | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitx86_64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitaarch64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitppc64le | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP4 | gits390x | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitx86_64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP5 | gitaarch64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP5 | gitppc64le | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP5 | gits390x | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP5 | gitx86_64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-15-SP6 | gitaarch64 | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | SLE-15-SP6 | gitppc64le | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | SLE-15-SP6 | gits390x | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | SLE-15-SP6 | gitx86_64 | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | SLE-5 | gitaarch64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-5 | gitaarch64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-2 |
| SUSE / openSUSE | SLE-5 | gitppc64le | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-5 | gitppc64le | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-2 |
| SUSE / openSUSE | SLE-5 | gits390x | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-5 | gits390x | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-2 |
| SUSE / openSUSE | SLE-5 | gitx86_64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | SLE-5 | gitx86_64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-2 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gitaarch64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gitppc64le | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gits390x | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | gitx86_64 | Advisory build | 2.35.3-150300.10.39.1 | SUSE-SU-2024:1807-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gitaarch64 | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gitppc64le | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gits390x | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gitx86_64 | Advisory build | 2.43.0-150600.3.3.1 | SUSE-SU-2024:2277-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitaarch64 | Advisory build | 2.45.1-1.1 | OPENSUSE-SU-2024:13968-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitppc64le | Advisory build | 2.45.1-1.1 | OPENSUSE-SU-2024:13968-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gits390x | Advisory build | 2.45.1-1.1 | OPENSUSE-SU-2024:13968-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitx86_64 | Advisory build | 2.45.1-1.1 | OPENSUSE-SU-2024:13968-1 |
| Ubuntu | focal | git | Advisory build | 1:2.25.1-1ubuntu3.12 | USN-6793-1 |
| Ubuntu | jammy | git | Advisory build | 1:2.34.1-1ubuntu1.11 | USN-6793-1 |
| Ubuntu | noble | git | Advisory build | 1:2.43.0-1ubuntu7.1 | USN-6793-1 |
| AlmaLinux | 8 | git-all | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-core | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-core-doc | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-credential-libsecret | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-daemon | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-email | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-gui | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-instaweb | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-subtree | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | git-svn | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | gitk | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | gitweb | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | perl-Git | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 8 | perl-Git-SVN | Advisory build | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux | 9 | git-all | Advisory build | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux | 9 | git-core | Advisory build | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux | 9 | git-core-doc | Advisory build | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux | 9 | git-credential-libsecret | Advisory build | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux | 9 | git-daemon | Advisory build | 2.43.5-1.el9_4 | ALSA-2024:4083 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.9 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| git | git | = 2.45.0 (affected)= 2.44.0 (affected)>= 2.43.0, < 2.43.4 (affected)>= 2.42.0, < 2.42.2 (affected)= 2.41.0 (affected)>= 2.40.0, < 2.40.2 (affected)< 2.39.4 (affected) | GitHub_M · cna |
| git | git | 0 to < 2.39.4 (affected · custom)2.40.0 to < 2.40.2 (affected · custom)2.41.0 to < 2.41.1 (affected · custom)2.42.0 to < 2.42.2 (affected · custom)2.43.0 to < 2.43.4 (affected · custom)2.44.0 to < 2.44.1 (affected · custom)2.45.0 to < 2.45.1 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-547 CWE-547: Use of Hard-coded, Security-relevant Constants
References
5- http://www.openwall.com/lists/oss-security/2024/05/14/2
- https://github.com/git/git/security/advisories/GHSA-mvxm-9j2h-qjx7
- https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/
Provider assertions
3GitHub_M · cna
Local Git clone may hardlink arbitrary user-readable files into the new repository's "objects/" directory
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2089297ec3bbea4dad104f499ad0856b190dcd3cb1efd77acbd93a166824c9bf
- Ingested
- 23 Sep 2026, 08:22:40 UTC
- Source record
- Official CVE record