CVE Catalog

CVE-2024-52005

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Summary

Git, when cloning, fetching, or pushing, transports informational and error messages from the remote process via the sideband channel, prefixing them with "remote:" and printing to standard error. Git did not protect against ANSI escape sequences, which a malicious actor can use to hide or misrepresent information or mislead the user into executing untrusted scripts.

Risk Assessment

An attacker can manipulate terminal output, hide information, or trick the user into executing malicious commands during Git operations with an untrusted repository.

Recommendation

Update Git to a version containing the fix; until then, avoid recursive clones from untrusted sources.

Other vulnerabilities in Git

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS