VDB

CVE-2024-32465

CVE-2024-32465 PUBLISHED CVSS 7.4 HIGH

Git's protections for cloning untrusted repositories can be bypassed

Reported by github_m · Published May 14, 2024

Git is a revision control system. The Git project recommends to avoid working in untrusted repositories, and instead to clone it first with `git clone --no-local` to obtain a clean copy. Git has specific protections to make that a safe operation even with an untrusted source repository, but vulnerabilities allow those protections to be bypassed. In the context of cloning local repositories owned by other users, this vulnerability has been covered in CVE-2024-32004. But there are circumstances where the fixes for CVE-2024-32004 are not enough: For example, when obtaining a `.zip` file containing a full copy of a Git repository, it should not be trusted by default to be safe, as e.g. hooks could be configured to run within the context of that repository. 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. As a workaround, avoid using Git in repositories that have been obtained via archives from untrusted sources.

Fixed versions

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

PackageEcosystemFixed in
git-core-docAmazon Linux2.40.1-1.amzn2023.0.3
git-credential-libsecretAmazon Linux2.40.1-1.amzn2023.0.3, 2.40.1-1.amzn2.0.3
git-svnAmazon Linux2.40.1-1.amzn2.0.3
git-allAmazon Linux2.40.1-1.amzn2023.0.3, 2.40.1-1.amzn2.0.3
perl-Git-SVNAmazon Linux2.40.1-1.amzn2023.0.3
git-coreAmazon Linux2.40.1-1.amzn2023.0.3, 2.40.1-1.amzn2.0.3
perl-GitAmazon Linux2.40.1-1.amzn2.0.3
git-guiAmazon Linux2.40.1-1.amzn2023.0.3
gitChainguard2.45.1-r0
gitAmazon Linux2.40.1-1.amzn2023.0.3, 2.40.1-1.amzn2.0.3
git-subtreeAmazon Linux2.40.1-1.amzn2.0.3
gitwebAmazon Linux2.40.1-1.amzn2023.0.3

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

Risk scores

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

Affected products

VendorProductVersions
gitgit= 2.45.0, = 2.44.0, >= 2.43.0, < 2.43.4
amazon:2023git-core-doc0
amazon:2023git-credential-libsecret0
amazon:2git-svn0
amazon:2git-all0
amazon:2023perl-Git-SVN0
amazon:2git-core0
amazon:2perl-Git0
amazon:2023git-gui0
chainguardgit0
amazon:2git0
amazon:2git-subtree0
amazon:2023git-all0
amazon:2023gitweb0
alpinegit0, 0, 0
amazon:2git-credential-libsecret0
amazon:2023git-instaweb0
amazon:2023git-cvs0
wolfigit0
amazon:2023git-email0

…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 (12 in total, the first dated here)
  • Nov 4, 2025 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-32465
vulnetix vdb fixes CVE-2024-32465

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-32465/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 ›