VDB

CVE-2024-32021

CVE-2024-32021 PUBLISHED CVSS 3.9 LOW

Reported by github_m · Published May 14, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
git-daemonAmazon Linux2.40.1-1.amzn2.0.3
git-emailAmazon Linux2.40.1-1.amzn2023.0.3, 2.40.1-1.amzn2.0.3
git-svnAmazon Linux2.40.1-1.amzn2023.0.3, 2.40.1-1.amzn2.0.3
perl-GitAmazon Linux2.40.1-1.amzn2023.0.3
git-allAmazon Linux2.40.1-1.amzn2.0.3
git-subtreeAmazon Linux2.40.1-1.amzn2023.0.3
git-coreAmazon Linux2.40.1-1.amzn2023.0.3
gitAmazon Linux2.40.1-1.amzn2.0.3
gitkAmazon Linux2.40.1-1.amzn2.0.3
git-instawebAmazon Linux2.40.1-1.amzn2.0.3
gitgit-scm2.43.4, 2.42.2, 2.40.2, 2.39.4
gitgit2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, 2.39.4

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
3.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:L

Affected products

VendorProductVersions
gitgit= 2.45.0, = 2.44.0, >= 2.43.0, < 2.43.4
amazon:2git-daemon0
amazon:2git-email0
amazon:2git-svn0
amazon:2023perl-Git0
gitgit2.44.0, 2.40.0, 2.41.0
amazon:2023git-svn0
amazon:2git-all0
amazon:2023git-subtree0
amazon:2023git-email0
amazon:2023git-core0
amazon:2git0
amazon:2gitk0
amazon:2git-instaweb0
gitgit2.45.0, 2.44.0, 0
amazon:2023gitweb0
wolfigit0
amazon:2perl-Git0
amazon:2023git-instaweb0
amazon:2023git-cvs0

…and 20 more

Timeline

  • May 14, 2024 CVE Published
  • May 15, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (11 in total, the first dated here)
  • Jan 7, 2026 CVE Updated
  • Jan 12, 2026 Security Advisory (13 in total, the first dated here)
  • Sep 11, 2026 Distribution Patch (12 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-32021
vulnetix vdb fixes CVE-2024-32021

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-32021/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›