Newline confusion in credential helpers can lead to credential exfiltration in git
Description
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Git defines a line-based protocol that is used to exchange information between Git and Git credential helpers. Some ecosystems (most notably, .NET and node.js) interpret single Carriage Return characters as newlines, which renders the protections against CVE-2020-5260 incomplete for credential helpers that treat Carriage Returns in this way. This issue has been addressed in commit b01b9b8 which is included in release versions v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, and v2.40.4. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
54- osv-coords52 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/gitkpkg:rpm/almalinux/git-subtreepkg:rpm/almalinux/git-svnpkg:rpm/almalinux/gitwebpkg:rpm/almalinux/perl-Gitpkg:rpm/almalinux/perl-Git-SVNpkg:rpm/opensuse/git&distro=openSUSE%20Leap%2015.6pkg:rpm/suse/git&distro=SUSE%20Enterprise%20Storage%207.1pkg: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%20High%20Performance%20Computing%2015%20SP5-ESPOSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSSpkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg: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/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-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%2015%20SP5-LTSSpkg: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%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/git&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/git&distro=SUSE%20Linux%20Micro%206.1pkg:rpm/suse/git&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/git&distro=SUSE%20Manager%20Server%204.3
< 2.48.1-r0+ 51 more
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.48.1-r0
- (no CPE)range: < 2.40.4
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.47.3-1.el9_6
- (no CPE)range: < 2.43.0-150600.3.9.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.43.0-150600.3.9.1
- (no CPE)range: < 2.43.0-150600.3.9.1
- (no CPE)range: < 2.26.2-27.78.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.26.2-27.78.1
- (no CPE)range: < 2.45.1-2.1
- (no CPE)range: < 2.46.0-slfo.1.1_2.1
- (no CPE)range: < 2.35.3-150300.10.48.1
- (no CPE)range: < 2.35.3-150300.10.48.1
Patches
Vulnerability mechanics
References
4- github.com/git-ecosystem/git-credential-manager/security/advisories/GHSA-86c2-4x57-wc8gmitrex_refsource_MISC
- github.com/git/git/commit/b01b9b81d36759cdcd07305e78765199e1bc2060mitrex_refsource_MISC
- github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4qmitrex_refsource_MISC
- github.com/git/git/security/advisories/GHSA-r5ph-xg7q-xfrpmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.