Skip to main content

Improper Encoding or Escaping of Output

CVE-2024-52006

Severity Low
Score 2.1/10

Summary

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` this issue affects git through 2.40.3, 2.41.0-rc0 through 2.41.2, 2.42.0-rc0 through 2.42.3, 2.43.0-rc0 through 2.43.5 2.44.0-rc0 through 2.44.2, 2.45.0-rc0 through 2.45.2, 2.46.0-rc0 through 2.46.2, 2.47.0-rc0 through 2.47.1, and 2.48.0-rc0 through 2.48.0-rc2. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • NONE

CWE-116 - Improper Encoding or Escaping of Output

The software prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.

Advisory Timeline

  • Published