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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | git | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-all | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-all | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-core | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-core | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-core-doc | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-core-doc | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-credential-libsecret | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-credential-libsecret | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-daemon | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-daemon | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-email | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-email | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-gui | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-gui | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-instaweb | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-instaweb | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-subtree | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-subtree | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | git-svn | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | git-svn | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | gitk | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | gitk | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | gitweb | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | gitweb | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | perl-Git | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | perl-Git | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| AlmaLinux:8 | perl-Git-SVN | 2.43.5-1.el8_10 | ALSA-2024:4084 |
| AlmaLinux:9 | perl-Git-SVN | 2.43.5-1.el9_4 | ALSA-2024:4083 |
| Alpine:v3.20 | git | 2.45.1-r0 | ALPINE-CVE-2024-32465 |
| Alpine:v3.21 | git | 2.45.1-r0 | ALPINE-CVE-2024-32465 |
| Alpine:v3.22 | git | 2.45.1-r0 | ALPINE-CVE-2024-32465 |
| Alpine:v3.23 | git | 2.45.1-r0 | ALPINE-CVE-2024-32465 |
| Alpine:v3.24 | git | 2.45.1-r0 | ALPINE-CVE-2024-32465 |
| Debian:12 | git | 1:2.39.5-0+deb12u1 | DEBIAN-CVE-2024-32465 |
| Debian:12 | git | 1:2.39.5-0+deb12u1 | DSA-5769-1 |
| Debian:13 | git | 1:2.45.1-1 | DEBIAN-CVE-2024-32465 |
| Debian:14 | git | 1:2.45.1-1 | DEBIAN-CVE-2024-32465 |
| Rocky Linux:8 | git | 0:2.43.5-1.el8_10 | RLSA-2024:4084 |
| Rocky Linux:9 | git | 0:2.43.5-1.el9_4 | RLSA-2024:4083 |
| Ubuntu:22.04:LTS | git | 1:2.34.1-1ubuntu1.11 | USN-6793-1 |
| Ubuntu:22.04:LTS | git | 1:2.34.1-1ubuntu1.11 | UBUNTU-CVE-2024-32465 |
| Ubuntu:24.04:LTS | git | 1:2.43.0-1ubuntu7.1 | USN-6793-1 |
| Ubuntu:24.04:LTS | git | 1:2.43.0-1ubuntu7.1 | UBUNTU-CVE-2024-32465 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/git/git/security/advisories/GHSA-vm9j-46j9-qvq4 x_refsource_CONFIRM
- https://github.com/git/git/commit/7b70e9efb18c2cc3f219af399bd384c5801ba1d7 x_refsource_MISC
- https://git-scm.com/docs/git#_security x_refsource_MISC
- https://git-scm.com/docs/git-clone x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/
- http://www.openwall.com/lists/oss-security/2024/05/14/2
- https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html