Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-64654 EUVD-2026-54218

GitHub CLI: Terminal escape sequence injection in multiple `gh` commands

Published Aug 6, 2026 · Updated Aug 7, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
cli cli < 2.97.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 gh No fix yet —
Debian 12 gh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gh No fix yet —
Ubuntu 22.04 LTS gh No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS gh No fix yet —
Ubuntu Pro 24.04 LTS gh No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gh 2.97.0-1.1 openSUSE-SU-2026:11530-1
openSUSE Leap 16.0 gh 2.98.0-bp160.1.1 openSUSE-SU-2026:21663-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gh 2.97.0-1 —

Advisories 2

References