CVE-2024-32021
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, 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
63before 2.45.1, 2.44.1, 2.43.4, 2.42.2, 2.41.1, 2.40.2, and 2.39.4+ 5 more
- (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
- cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*range: <2.39.4
- cpe:2.3:a:git-scm:git:2.41.0:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:2.44.0:*:*:*:*:*:*:*
- cpe:2.3:a:git-scm:git:2.45.0:*:*:*:*:*:*:*
- osv-coords54 versionspkg:apk/wolfi/gitpkg:apk/chainguard/git-emailpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-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%20SP3pkg:apk/wolfi/git-docpkg:apk/chainguard/git-iamguarded-compatpkg:rpm/opensuse/git&distro=openSUSE%20Tumbleweedpkg:rpm/almalinux/git-guipkg:rpm/almalinux/git-instawebpkg:rpm/almalinux/git-subtreepkg:rpm/almalinux/git-svnpkg:rpm/almalinux/gitkpkg:apk/chainguard/git-p4pkg:apk/chainguard/git-completionpkg:apk/chainguard/git-daemonpkg:apk/chainguard/git-docpkg:apk/wolfi/git-iamguarded-compatpkg:bitnami/gitpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:apk/wolfi/git-p4pkg:rpm/suse/git&distro=SUSE%20Linux%20Micro%206.0pkg:apk/chainguard/gitpkg:apk/wolfi/git-completionpkg:apk/wolfi/git-daemonpkg:apk/wolfi/git-emailpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6pkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.6pkg: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%20Server%2015%20SP3-LTSSpkg: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/gitwebpkg:rpm/almalinux/perl-Gitpkg:rpm/almalinux/perl-Git-SVNpkg:rpm/suse/git&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg: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%20Server%2015%20SP4-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/git&distro=SUSE%20Manager%20Server%204.3pkg:rpm/suse/git&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.5
< 2.45.1-r0+ 53 more
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.26.2-27.78.1
- (no CPE)range: < 2.26.2-27.78.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-1.1
- (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.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.26.2-150000.56.1
- (no CPE)range: < 2.26.2-150000.56.1
- (no CPE)range: < 2.26.2-150000.56.1
- (no CPE)range: < 2.45.1-r0
- (no CPE)range: < 2.45.1-1.1
- (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.43.0-150600.3.3.1
- (no CPE)range: < 2.43.0-150600.3.3.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.35.3-150300.10.39.1
- (no CPE)range: < 2.35.3-150300.10.39.1
- (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.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.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
- cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
5- github.com/git/git/security/advisories/GHSA-mvxm-9j2h-qjx7nvdExploitVendor Advisory
- www.openwall.com/lists/oss-security/2024/05/14/2nvdMailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2024/06/msg00018.htmlnvdMailing ListThird Party Advisory
- lists.debian.org/debian-lts-announce/2024/09/msg00009.htmlnvdMailing ListThird Party Advisory
- lists.fedoraproject.org/archives/list/[email protected]/message/S4CK4IYTXEOBZTEM5K3T6LWOIZ3S44AR/nvdMailing ListThird Party Advisory
News mentions
0No linked articles in our index yet.