CVE-2024-32002
Description
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, repositories with submodules can be crafted in a way that exploits a bug in Git whereby it can be fooled into writing files not into the submodule's worktree but into a .git/ directory. This allows writing a hook that will be executed while the clone operation is still running, giving the user no opportunity to inspect the code that is being executed. 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. If symbolic link support is disabled in Git (e.g. via git config --global core.symlinks false), the described attack won't work. As always, it is best to avoid cloning repositories from untrusted sources.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
60cpe:2.3:a:git:git:*:*:*:*:*:*:*:*+ 5 more
- cpe:2.3:a:git:git:*:*:*:*:*:*:*:*range: <2.39.4
- cpe:2.3:a:git:git:2.41.0:*:*:*:*:*:*:*
- cpe:2.3:a:git:git:2.44.0:*:*:*:*:*:*:*
- cpe:2.3:a:git:git:2.45.0:*:*:*:*:*:*:*
- (no CPE)range: before 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4
- (no CPE)range: = 2.45.0
- osv-coords54 versionspkg:apk/chainguard/gitpkg:apk/chainguard/git-completionpkg:apk/chainguard/git-daemonpkg:apk/chainguard/git-docpkg:apk/chainguard/git-emailpkg:apk/chainguard/git-iamguarded-compatpkg:apk/chainguard/git-p4pkg:apk/wolfi/gitpkg:apk/wolfi/git-completionpkg:apk/wolfi/git-daemonpkg:apk/wolfi/git-docpkg:apk/wolfi/git-emailpkg:apk/wolfi/git-iamguarded-compatpkg:apk/wolfi/git-p4pkg:bitnami/gitpkg:rpm/almalinux/gitpkg:rpm/almalinux/git-allpkg:rpm/almalinux/git-corepkg:rpm/almalinux/git-core-docpkg:rpm/almalinux/git-credential-libsecretpkg:rpm/almalinux/git-daemonpkg:rpm/almalinux/git-emailpkg:rpm/almalinux/git-guipkg:rpm/almalinux/git-instawebpkg:rpm/almalinux/git-subtreepkg:rpm/almalinux/git-svnpkg:rpm/almalinux/gitkpkg:rpm/almalinux/gitwebpkg:rpm/almalinux/perl-Gitpkg:rpm/almalinux/perl-Git-SVNpkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/git&distro=openSUSE%20Tumbleweedpkg:rpm/suse/git&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/git&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/git&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/git&distro=SUSE%20Manager%20Server%204.3
< 2.45.1-r0+ 53 more
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.39.4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.43.5-1.el9_4
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.43.0-150600.3.3.1
- (no CPE)range: < 2.45.1-1.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.26.2-150000.56.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.43.0-150600.3.3.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.43.0-150600.3.3.1
- (no CPE)range: < 2.26.2-27.78.1
- (no CPE)range: < 2.26.2-150000.56.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.26.2-27.78.1
- (no CPE)range: < 2.26.2-150000.56.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.45.1-1.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
Patches
Vulnerability mechanics
References
8- github.com/git/git/commit/97065761333fd62db1912d81b489db938d8c991dnvdPatch
- github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgvnvdThird Party Advisory
- git-scm.com/docs/git-clonenvdNot Applicable
- git-scm.com/docs/git-confignvdNot Applicable
- www.openwall.com/lists/oss-security/2024/05/14/2nvd
- lists.debian.org/debian-lts-announce/2024/06/msg00018.htmlnvd
- lists.debian.org/debian-lts-announce/2024/09/msg00009.htmlnvd
- lists.fedoraproject.org/archives/list/[email protected]/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/nvd
News mentions
0No linked articles in our index yet.