Improper Encoding or Escaping of Output Affecting git/git package, versions [,2.40.4)[2.41.0,2.41.3)[2.42.0,2.42.4)[2.43.0,2.43.6)[2.44.0,2.44.3)[2.45.0,2.45.3)[2.46.0,2.46.3)[2.47.0,2.47.1)[2.48.0,2.48.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GITGIT-8623534
  • published15 Jan 2025
  • disclosed14 Jan 2025
  • creditUnknown

Introduced: 14 Jan 2025

NewCVE-2024-52006  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade git/git to version 2.40.4, 2.41.3, 2.42.4, 2.43.6, 2.44.3, 2.45.3, 2.46.3, 2.47.1, 2.48.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output due to improper handling of newline characters in the credential exchange protocol. An attacker can exfiltrate credentials by manipulating newline characters in data sent to Git credential helpers.

Workaround

This vulnerability can be mitigated by avoiding cloning from untrusted URLs, especially recursive clones.

References

CVSS Scores

version 4.0
version 3.1