CVEfocus › CVE database › CVE-2026-64654

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

CVSS 5.3 MediumEPSS 0.8% (higher than 52% of CVEs)Published 2026-08-06Updated 2026-08-07Assigner: GitHub_M

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.

CWE-150

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ghFix pendingUBUNTU-CVE-2026-64654
Ubuntu 26.04ghFix pendingUBUNTU-CVE-2026-64654
Ubuntu 24.04ghFix pendingUBUNTU-CVE-2026-64654
Ubuntu 22.04ghUnder investigationUBUNTU-CVE-2026-64654
Debian 13ghFix pendingDEBIAN-CVE-2026-64654
Debian 12ghFix pendingDEBIAN-CVE-2026-64654

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.