CVE-2026-64654 GitHub CLI: Terminal escape sequence injection in multiple `gh` commands
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
8 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/gh(Debian 12) | = 2.23.0+dfsg1-1; = 2.24.3+dfsg1-1; = 2.27.0+dfsg1-1; = 2.30.0-1 +13 more | No fix listed | No fix yet |
| debian/gh(Debian 13) | = 2.46.0-3; = 2.46.0-4; All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/gh(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux gh(Azure Linux 3.0) | < 2.97.0-1 | 2.97.0-1 | Fixed |
| cli github.com/cli/cli | = < 2.97.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cli github.com/cli/cli | = < 2.97.0 | No fix listed |
| debian/gh(Debian:12) | All versions | No fix listed |
| debian/gh(Debian:12) | = 2.23.0+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.24.3+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.27.0+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.30.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.30.0-2 | No fix listed |
| debian/gh(Debian:12) | = 2.35.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.40.1+dfsg1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.42.1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.43.1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.44.1-1 | No fix listed |
| debian/gh(Debian:12) | = 2.44.1-2 | No fix listed |
| debian/gh(Debian:12) | = 2.45.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-1 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-2 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-3 | No fix listed |
| debian/gh(Debian:12) | = 2.46.0-4 | No fix listed |
| debian/gh(Debian:13) | All versions | No fix listed |
| debian/gh(Debian:13) | = 2.46.0-3 | No fix listed |
| debian/gh(Debian:13) | = 2.46.0-4 | No fix listed |
| ubuntu/gh(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/gh(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/gh(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/gh(Ubuntu:26.10) | All versions | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux gh(Azure Linux:3.0) | < 2.97.0-1 | 2.97.0-1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- https://github.com/cli/cli/security/advisories/GHSA-3m3g-3wcr-px46
- https://github.com/cli/cli/commit/2a1409fe88d416cc85fc96fb5bc473f83ed5a054
- https://github.com/cli/cli/releases/tag/v2.97.0
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2512206 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-64654 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-54218 third-party-advisory