CVE-2024-52005

The sideband payload is passed unfiltered to the terminal in git

State
Published
Severity
7.5 High
Published
Jan 15, 2025
Updated
Jan 15, 2025
Reserved
Nov 4, 2024

Read the record on cve.org

Description

Git is a source code management tool. When cloning from a server (or fetching, or pushing), informational or error messages are transported from the remote Git process to the client via the so-called "sideband channel". These messages will be prefixed with "remote:" and printed directly to the standard error output. Typically, this standard error output is connected to a terminal that understands ANSI escape sequences, which Git did not protect against. Most modern terminals support control sequences that can be used by a malicious actor to hide and misrepresent information, or to mislead the user into executing untrusted scripts. As requested on the git-security mailing list, the patches are under discussion on the public mailing list. Users are advised to update as soon as possible. Users unable to upgrade should avoid recursive clones unless they are from trusted sources.

Scores

CVSSScoreVectorSource
4.07.5 HighCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-116 Improper Encoding or Escaping of Output
  • CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences

Affected Products

ProductVersions
gitgit
  • >= 2.48.0, <= 2.48.1Affected
  • >= 2.47.0, <= 2.47.1Affected
  • >= 2.46.0, <= 2.46.3Affected
  • >= 2.45.0, <= 2.45.3Affected
  • >= 2.44.0, <= 2.44.3Affected
  • >= 2.43.0, <= 2.43.6Affected
  • >= 2.42.0, <= 2.42.4Affected
  • >= 2.41.0, <= 2.41.3Affected
  • <= 2.40.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.