CVE-2024-52005

HIGH

Git < 2.40.4 - Terminal Control Sequence Injection via Sideband Channel

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-52005. PoCs published by andrewd-cg.

AI-analyzed exploit summary This repository contains a functional PoC for CVE-2024-52005, demonstrating ANSI escape sequence injection in Git via sideband channels. The exploit includes scripts to test vulnerable Git versions and frameworks to generate malicious payloads for social engineering and log poisoning.

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.

Exploits (1)

nomisec WORKING POC
by andrewd-cg · poc
https://github.com/andrewd-cg/cve-2024-52005-poc

This repository contains a functional PoC for CVE-2024-52005, demonstrating ANSI escape sequence injection in Git via sideband channels. The exploit includes scripts to test vulnerable Git versions and frameworks to generate malicious payloads for social engineering and log poisoning.

Classification
Working Poc 95%
Attack Type
Other
Complexity
Moderate
Reliability
Reliable
Target: Git versions prior to 2.48.1, 2.47.3, 2.46.5, 2.45.4, and 2.44.3
No auth needed
Prerequisites: Vulnerable Git version · Ability to clone a malicious repository
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (2)

Core 2
Core References
Mailing List, Third Party Advisory x_refsource_misc
https://lore.kernel.org/git/[email protected]

Scores

CVSS v3 8.8
EPSS 0.0047
EPSS Percentile 37.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-116 CWE-150
Status published
Products (1)
git/git < 2.40.4
Published Jan 15, 2025
Tracked Since Feb 18, 2026