Git subject to exposure of sensitive information via local clone of symbolic links
Description
Git is an open source, scalable, distributed revision control system. Versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4 are subject to exposure of sensitive information to a malicious actor. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's $GIT_DIR/objects directory into the destination by either creating hardlinks to the source contents, or copying them (if hardlinks are disabled via --no-hardlinks). A malicious actor could convince a victim to clone a repository with a symbolic link pointing at sensitive information on the victim's machine. This can be done either by having the victim clone a malicious repository on the same machine, or having them clone a malicious repository embedded as a bare repository via a submodule from any source, provided they clone with the --recurse-submodules option. Git does not create symbolic links in the $GIT_DIR/objects directory. The problem has been patched in the versions published on 2022-10-18, and backported to v2.30.x. Potential workarounds: Avoid cloning untrusted repositories using the --local optimization when on a shared machine, either by passing the --no-local option to git clone or cloning from a URL that uses the file:// scheme. Alternatively, avoid cloning repositories from untrusted sources with --recurse-submodules or run git config --global protocol.file.allow user.
Affected products
51- osv-coords50 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: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/gitkpkg:rpm/almalinux/git-subtreepkg:rpm/almalinux/git-svnpkg:rpm/almalinux/gitwebpkg:rpm/almalinux/perl-Gitpkg:rpm/almalinux/perl-Git-SVNpkg:rpm/opensuse/docker-compose&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/git&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/reuse&distro=openSUSE%20Tumbleweedpkg:rpm/suse/git&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/git&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20OpenStack%20Cloud%208
< 2.38.1-r0+ 49 more
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.38.1-r0
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.39.1-1.el9
- (no CPE)range: < 2.12.2-1.1
- (no CPE)range: < 2.35.3-150300.10.18.1
- (no CPE)range: < 2.35.3-150300.10.18.1
- (no CPE)range: < 2.38.1-1.1
- (no CPE)range: < 1.1.2-1.1
- (no CPE)range: < 2.26.2-27.60.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.35.3-150300.10.18.1
- (no CPE)range: < 2.35.3-150300.10.18.1
- (no CPE)range: < 2.35.3-150300.10.18.1
- (no CPE)range: < 2.35.3-150300.10.18.1
- (no CPE)range: < 2.26.2-27.60.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.26.2-27.60.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.26.2-150000.47.1
- (no CPE)range: < 2.26.2-27.60.1
- (no CPE)range: < 2.26.2-27.60.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
12- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C7B6JPKX5CGGLAHXJVQMIZNNEEB72FHD/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JMQWGMDLX6KTVWW5JZLVPI7ICAK72TN7/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OHNO2FB55CPX47BAXMBWUBGWHO6N6ZZH/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UKFHE4KVD7EKS5J3KTDFVBEKU3CLXGVV/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VFYXCTLOSESYIP72BUYD6ECDIMUM4WMB/mitrevendor-advisory
- security.gentoo.org/glsa/202312-15mitrevendor-advisory
- seclists.org/fulldisclosure/2022/Nov/1mitremailing-list
- www.openwall.com/lists/oss-security/2023/02/14/5mitremailing-list
- www.openwall.com/lists/oss-security/2024/05/14/2mitremailing-list
- lists.debian.org/debian-lts-announce/2022/12/msg00025.htmlmitremailing-list
- github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85mitre
- support.apple.com/kb/HT213496mitre
News mentions
0No linked articles in our index yet.