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

Medium 5.3 Published Updated

Attackers can inject terminal escape sequences into GitHub CLI output, potentially executing commands or manipulating the display on user terminals.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-64654?

CVE-2026-64654 is a medium-severity command injection vulnerability in cli, published on 6 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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.

Weakness: CWE-150

Which versions are affected by CVE-2026-64654?

How do I fix CVE-2026-64654?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-64654 being exploited?

There is no known exploitation of CVE-2026-64654 in the wild and no public exploit code.

Sources

Also known as AZL-95462, DEBIAN-CVE-2026-64654, GHSA-3m3g-3wcr-px46, UBUNTU-CVE-2026-64654.

Is CVE-2026-64654 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free