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).
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | gh | no fix listed | DEBIAN-CVE-2026-64654 |
| Debian:13 | gh | no fix listed | DEBIAN-CVE-2026-64654 |
| Ubuntu:22.04:LTS | gh | no fix listed | UBUNTU-CVE-2026-64654 |
| Ubuntu:26.10 | gh | no fix listed | UBUNTU-CVE-2026-64654 |
Affected products (as reported)
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
- https://github.com/cli/cli/security/advisories/GHSA-3m3g-3wcr-px46 x_refsource_CONFIRM
- https://github.com/cli/cli/commit/2a1409fe88d416cc85fc96fb5bc473f83ed5a054 x_refsource_MISC
- https://github.com/cli/cli/releases/tag/v2.97.0 x_refsource_MISC