UBUNTU-CVE-2024-32021 (CVE-2024-32021)
Vulnerability from osv_ubuntu – Published: 2024-05-14 20:15 – Updated: 2026-11-24 10:03 – Source websiteGit 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.
| Ecosystem | Package | Version |
|---|---|---|
| Ubuntu:Pro:18.04:LTS |
git
pkg:deb/ubuntu/git@1:2.17.1-1ubuntu0.18+esm1?arch=source&distro=esm-infra/bionic
|
Affected: < 1:2.17.1-1ubuntu0.18+esm1 (ecosystem)
1:2.14.1-1ubuntu41:2.15.1-1ubuntu21:2.17.0-1ubuntu11:2.17.1-1ubuntu0.11:2.17.1-1ubuntu0.31:2.17.1-1ubuntu0.41:2.17.1-1ubuntu0.51:2.17.1-1ubuntu0.61:2.17.1-1ubuntu0.71:2.17.1-1ubuntu0.8
and 10 more (see JSON)
|
| Ubuntu:20.04:LTS |
git
pkg:deb/ubuntu/git@1:2.25.1-1ubuntu3.12?arch=source&distro=focal
|
Affected: < 1:2.25.1-1ubuntu3.12 (ecosystem)
1:2.20.1-2ubuntu11:2.24.0-1ubuntu11:2.24.0-1ubuntu21:2.25.0-1ubuntu11:2.25.1-1ubuntu11:2.25.1-1ubuntu21:2.25.1-1ubuntu31:2.25.1-1ubuntu3.11:2.25.1-1ubuntu3.21:2.25.1-1ubuntu3.3
and 7 more (see JSON)
|
| Ubuntu:22.04:LTS |
git
pkg:deb/ubuntu/git@1:2.34.1-1ubuntu1.11?arch=source&distro=jammy
|
Affected: < 1:2.34.1-1ubuntu1.11 (ecosystem)
1:2.32.0-1ubuntu11:2.33.1-1ubuntu11:2.34.1-1ubuntu11:2.34.1-1ubuntu1.11:2.34.1-1ubuntu1.21:2.34.1-1ubuntu1.41:2.34.1-1ubuntu1.51:2.34.1-1ubuntu1.61:2.34.1-1ubuntu1.81:2.34.1-1ubuntu1.9
and 1 more (see JSON)
|
| Ubuntu:24.04:LTS |
git
pkg:deb/ubuntu/git@1:2.43.0-1ubuntu7.1?arch=source&distro=noble
|
Affected: < 1:2.43.0-1ubuntu7.1 (ecosystem)
1:2.40.1-1ubuntu11:2.43.0-1ubuntu11:2.43.0-1ubuntu51:2.43.0-1ubuntu61:2.43.0-1ubuntu7
|
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "git",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-all",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-cvs",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-daemon-run",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-daemon-sysvinit",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-el",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-email",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-gui",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-man",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-mediawiki",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "git-svn",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "gitk",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
},
{
"binary_name": "gitweb",
"binary_version": "1:2.17.1-1ubuntu0.18+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "git",
"purl": "pkg:deb/ubuntu/git@1:2.17.1-1ubuntu0.18+esm1?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1:2.17.1-1ubuntu0.18+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:2.14.1-1ubuntu4",
"1:2.15.1-1ubuntu2",
"1:2.17.0-1ubuntu1",
"1:2.17.1-1ubuntu0.1",
"1:2.17.1-1ubuntu0.3",
"1:2.17.1-1ubuntu0.4",
"1:2.17.1-1ubuntu0.5",
"1:2.17.1-1ubuntu0.6",
"1:2.17.1-1ubuntu0.7",
"1:2.17.1-1ubuntu0.8",
"1:2.17.1-1ubuntu0.9",
"1:2.17.1-1ubuntu0.10",
"1:2.17.1-1ubuntu0.11",
"1:2.17.1-1ubuntu0.12",
"1:2.17.1-1ubuntu0.13",
"1:2.17.1-1ubuntu0.14",
"1:2.17.1-1ubuntu0.15",
"1:2.17.1-1ubuntu0.16",
"1:2.17.1-1ubuntu0.17",
"1:2.17.1-1ubuntu0.18"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "git",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-all",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-cvs",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-daemon-run",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-daemon-sysvinit",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-el",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-email",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-gui",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-man",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-mediawiki",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "git-svn",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "gitk",
"binary_version": "1:2.25.1-1ubuntu3.12"
},
{
"binary_name": "gitweb",
"binary_version": "1:2.25.1-1ubuntu3.12"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "git",
"purl": "pkg:deb/ubuntu/git@1:2.25.1-1ubuntu3.12?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1:2.25.1-1ubuntu3.12"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:2.20.1-2ubuntu1",
"1:2.24.0-1ubuntu1",
"1:2.24.0-1ubuntu2",
"1:2.25.0-1ubuntu1",
"1:2.25.1-1ubuntu1",
"1:2.25.1-1ubuntu2",
"1:2.25.1-1ubuntu3",
"1:2.25.1-1ubuntu3.1",
"1:2.25.1-1ubuntu3.2",
"1:2.25.1-1ubuntu3.3",
"1:2.25.1-1ubuntu3.4",
"1:2.25.1-1ubuntu3.5",
"1:2.25.1-1ubuntu3.6",
"1:2.25.1-1ubuntu3.7",
"1:2.25.1-1ubuntu3.8",
"1:2.25.1-1ubuntu3.10",
"1:2.25.1-1ubuntu3.11"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "git",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-all",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-cvs",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-daemon-run",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-daemon-sysvinit",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-email",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-gui",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-man",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-mediawiki",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "git-svn",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "gitk",
"binary_version": "1:2.34.1-1ubuntu1.11"
},
{
"binary_name": "gitweb",
"binary_version": "1:2.34.1-1ubuntu1.11"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "git",
"purl": "pkg:deb/ubuntu/git@1:2.34.1-1ubuntu1.11?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1:2.34.1-1ubuntu1.11"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:2.32.0-1ubuntu1",
"1:2.33.1-1ubuntu1",
"1:2.34.1-1ubuntu1",
"1:2.34.1-1ubuntu1.1",
"1:2.34.1-1ubuntu1.2",
"1:2.34.1-1ubuntu1.4",
"1:2.34.1-1ubuntu1.5",
"1:2.34.1-1ubuntu1.6",
"1:2.34.1-1ubuntu1.8",
"1:2.34.1-1ubuntu1.9",
"1:2.34.1-1ubuntu1.10"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "git",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-all",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-cvs",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-daemon-run",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-daemon-sysvinit",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-email",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-gui",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-man",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-mediawiki",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "git-svn",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "gitk",
"binary_version": "1:2.43.0-1ubuntu7.1"
},
{
"binary_name": "gitweb",
"binary_version": "1:2.43.0-1ubuntu7.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "git",
"purl": "pkg:deb/ubuntu/git@1:2.43.0-1ubuntu7.1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1:2.43.0-1ubuntu7.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:2.40.1-1ubuntu1",
"1:2.43.0-1ubuntu1",
"1:2.43.0-1ubuntu5",
"1:2.43.0-1ubuntu6",
"1:2.43.0-1ubuntu7"
]
}
],
"aliases": [],
"details": "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\u0027s `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.",
"id": "UBUNTU-CVE-2024-32021",
"modified": "2026-11-24T10:03:40Z",
"published": "2024-05-14T20:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2024-32021"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2024-32021"
},
{
"type": "REPORT",
"url": "https://github.com/git/git/security/advisories/GHSA-mvxm-9j2h-qjx7"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-6793-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7023-1"
}
],
"related": [
"USN-6793-1",
"USN-7023-1"
],
"schema_version": "1.9.2",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L",
"source": "CNA",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"source": "NVD",
"type": "CVSS_V3"
},
{
"score": "medium",
"source": "SELF",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2024-32021"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.