Vulnerability · Published May 14, 2024 · Assigned by GitHub_M

CVE-2024-32465Git's protections for cloning untrusted repositories can be bypassed

High 7.4

In plain English

A high-severity path traversal in git from git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)1.0%top 36.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8git2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-all2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-all2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-core2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-core2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-core-doc2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-core-doc2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-credential-libsecret2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-credential-libsecret2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-daemon2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-daemon2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-email2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-email2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-gui2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-gui2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-instaweb2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-instaweb2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-subtree2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-subtree2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8git-svn2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9git-svn2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8gitk2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9gitk2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8gitweb2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9gitweb2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8perl-Git2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9perl-Git2.43.5-1.el9_4ALSA-2024:4083
AlmaLinux:8perl-Git-SVN2.43.5-1.el8_10ALSA-2024:4084
AlmaLinux:9perl-Git-SVN2.43.5-1.el9_4ALSA-2024:4083
Alpine:v3.20git2.45.1-r0ALPINE-CVE-2024-32465
Alpine:v3.21git2.45.1-r0ALPINE-CVE-2024-32465
Alpine:v3.22git2.45.1-r0ALPINE-CVE-2024-32465
Alpine:v3.23git2.45.1-r0ALPINE-CVE-2024-32465
Alpine:v3.24git2.45.1-r0ALPINE-CVE-2024-32465
Debian:12git1:2.39.5-0+deb12u1DEBIAN-CVE-2024-32465
Debian:12git1:2.39.5-0+deb12u1DSA-5769-1
Debian:13git1:2.45.1-1DEBIAN-CVE-2024-32465
Debian:14git1:2.45.1-1DEBIAN-CVE-2024-32465
Rocky Linux:8git0:2.43.5-1.el8_10RLSA-2024:4084
Rocky Linux:9git0:2.43.5-1.el9_4RLSA-2024:4083
Ubuntu:22.04:LTSgit1:2.34.1-1ubuntu1.11USN-6793-1
Ubuntu:22.04:LTSgit1:2.34.1-1ubuntu1.11UBUNTU-CVE-2024-32465
Ubuntu:24.04:LTSgit1:2.43.0-1ubuntu7.1USN-6793-1
Ubuntu:24.04:LTSgit1:2.43.0-1ubuntu7.1UBUNTU-CVE-2024-32465

Affected products (as reported)

VendorProductVersions
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

Weakness: CWE-22 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

References