Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M

CVE-2026-64654GitHub CLI: Terminal escape sequence injection in multiple `gh` commands

Medium 5.3

In plain English

A medium-severity security flaw in cli from cli. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities).

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.8%top 44.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, multiple GitHub CLI commands printed externally controlled gist, API, pull request, release, codespace, skill, or agent-task content without neutralizing terminal escape sequences. An attacker who can influence that content can embed escape sequences that are interpreted by the terminal of a user who runs an affected command, with impact ranging from cosmetic manipulation of the title or on-screen content to, on some terminal emulators, command execution. This extends the same class of issue as CVE-2026-45803—which addressed only gh run view --log—to the other affected command paths. This issue is fixed in version 2.97.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ghno fix listedDEBIAN-CVE-2026-64654
Debian:13ghno fix listedDEBIAN-CVE-2026-64654
Ubuntu:22.04:LTSghno fix listedUBUNTU-CVE-2026-64654
Ubuntu:26.10ghno fix listedUBUNTU-CVE-2026-64654

Affected products (as reported)

VendorProductVersions
cli cli < 2.97.0

Weakness: CWE-150 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References