Newline confusion in credential helpers can lead to credential exfiltration
Package
git
Affected versions
v2.48.0 <=v2.47.1 <=v2.46.2 <=v2.45.2 <=v2.44.2 <=v2.43.5 <=v2.42.3 <=v2.41.2 <=v2.40.3
Patched 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 v2.40.4
Impact
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.
Patches
b01b9b8
Workarounds
Avoid cloning from untrusted URLs, especially recursive clones.
References