
CVE catalog
CVE-2024-32021
Git vulnerabilities
- Severity
- Low · CVSS 3.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.02% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | git | sid | 1:2.55.0-1 | fixed |
| Debian | git | forky | 1:2.53.0-1 | fixed |
| Debian | git | trixie | 1:2.47.3-0+deb13u1 | fixed |
| Debian | git | bookworm | 1:2.39.5-0+deb12u3 | fixed |
| Debian | git | bookworm-security | 1:2.39.5-0+deb12u2 | fixed |
| Ubuntu | git | noble | 1:2.39.5-0+deb12u1 | fixed |
| Ubuntu | git | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-all | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-cvs | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-daemon-run | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-daemon-sysvinit | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-doc | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-email | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-gui | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-man | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-mediawiki | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | git-svn | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | gitk | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Ubuntu | gitweb | noble | 1:2.43.0-1ubuntu7.1 | fixed |
| Alpine | git | 3.17 | 2.39.5-r0 | fixed |
| Alpine | git | 3.18 | 2.40.3-r0 | fixed |
| Alpine | git | 3.19 | 2.43.4-r0 | fixed |
| Alpine | git | 3.20 | 2.45.1-r0 | fixed |
| Alpine | git | 3.21 | 2.45.1-r0 | fixed |
| Alpine | git | 3.22 | 2.45.1-r0 | fixed |
| Alpine | git | 3.23 | 2.45.1-r0 | fixed |
| Alpine | git | 3.24 | 2.45.1-r0 | fixed |
| Ubuntu | git | pro | 1:2.14.1-1ubuntu4 | vulnerable |
| Ubuntu | git | pro | 1:2.15.1-1ubuntu2 | vulnerable |
| Ubuntu | git | pro | 1:2.17.0-1ubuntu1 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.1 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.3 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.4 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.5 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.6 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.7 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.8 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.9 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.10 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.11 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.12 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.13 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.14 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.15 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.16 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.17 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.18 | vulnerable |
| Ubuntu | git | pro | 1:2.17.1-1ubuntu0.18+esm1 | fixed |
| Ubuntu | git | 20.04 | 1:2.20.1-2ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.24.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.24.0-1ubuntu2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.3 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.4 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.5 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.6 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.7 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.8 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.10 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.11 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.12 | fixed |
| Ubuntu | git | 22.04 | 1:2.32.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.33.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.2 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.4 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.5 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.6 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.8 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.9 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.10 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.11 | fixed |
| Ubuntu | git | 24.04 | 1:2.40.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 24.04 | 1:2.43.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 24.04 | 1:2.43.0-1ubuntu5 | vulnerable |
| Ubuntu | git | 24.04 | 1:2.43.0-1ubuntu6 | vulnerable |
| Ubuntu | git | 24.04 | 1:2.43.0-1ubuntu7 | vulnerable |
| Ubuntu | git | 24.04 | 1:2.43.0-1ubuntu7.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | git | source | sid | 1:2.45.1-1 | not yet assigned | Not reported | [1071160] |
| Debian | git | source | forky | 1:2.45.1-1 | not yet assigned | Not reported | [1071160] |
| Debian | git | source | trixie | 1:2.45.1-1 | not yet assigned | Not reported | [1071160] |
| Debian | git | source | bookworm | 1:2.39.5-0+deb12u1 | not yet assigned | Not reported | [1071160] |
| Ubuntu | git | deb | noble | 1:2.39.5-0+deb12u1 | Not reported | Not reported | Not reported |
| Ubuntu | git | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-all | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-cvs | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-daemon-run | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-daemon-sysvinit | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-doc | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-email | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-gui | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-man | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-mediawiki | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | git-svn | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | gitk | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Ubuntu | gitweb | deb | noble | 1:2.43.0-1ubuntu7.1 | Not reported | Not reported | Not reported |
| Alpine | git | apk | 3.17 | 2.39.5-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.18 | 2.40.3-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.19 | 2.43.4-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.20 | 2.45.1-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.21 | 2.45.1-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.22 | 2.45.1-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.23 | 2.45.1-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Alpine | git | apk | 3.24 | 2.45.1-r0 | Not reported | ALPINE-CVE-2024-32021 | Not reported |
| Ubuntu | git | deb | pro | 1:2.17.1-1ubuntu0.18+esm1 | Not reported | UBUNTU-CVE-2024-32021 | Not reported |
| Ubuntu | git | deb | 20.04 | 1:2.25.1-1ubuntu3.12 | Not reported | UBUNTU-CVE-2024-32021 | Not reported |
| Ubuntu | git | deb | 22.04 | 1:2.34.1-1ubuntu1.11 | Not reported | UBUNTU-CVE-2024-32021 | Not reported |
| Ubuntu | git | deb | 24.04 | 1:2.43.0-1ubuntu7.1 | Not reported | UBUNTU-CVE-2024-32021 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_4084.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2024-32021]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-32021]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-32021]
- [https://security-tracker.debian.org/tracker/CVE-2024-32021]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-32021.json]
- [https://ubuntu.com/security/notices/USN-6793-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1125.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]