Every CVE Search/ Get API key

CVE-2026-64654

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

5.3 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Passive

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
None

Exploit likelihood

0.77%Unchanged since Aug 7, 2026
90%50%10%1%

What each source reports

CVE List Score used 5.3

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

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.

Record
CVE-2026-64654
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Weakness
CWE-150
Updated
2026-11-02
EUVDEUVD-2026-54218 5.3

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.

Record
EUVD-2026-54218
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Updated
2026-11-02
NVD 5.3

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.

Record
CVE-2026-64654
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-150
Updated
2026-11-02
OSV 5.3

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

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.

Record
CVE-2026-64654
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Weakness
CWE-150
Updated
2026-11-02
OSVDEBIAN-CVE-2026-64654 5.3

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.

Record
DEBIAN-CVE-2026-64654
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVUBUNTU-CVE-2026-64654 5.3

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.

Record
UBUNTU-CVE-2026-64654
CVSS 4.0
5.3 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Updated
2026-11-02
OSVAZL-95462 No score

CVE-2026-64654 affecting package gh for versions less than 2.97.0-1

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.

Record
AZL-95462
Updated
2026-11-02
OSVopenSUSE-SU-2026:11530-1 No score

gh-2.97.0-1.1 on GA media

These are all security issues fixed in the gh-2.97.0-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:11530-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:21663-1 No score

Security update for gh

This update for gh fixes the following issues:

Changes in gh:

  • Update to version 2.98.0:
    • chore: fix extra whitespace
    • Default Codespaces port forwarding to loopback
    • Bump gh-aw-actions to v0.87.1 and recompile workflows
    • Fix issue triage action compatibility
    • chore(deps): bump golang.org/x/crypto from 0.54.0 to 0.55.0
    • chore: bump go to 1.26.7 (#14205)
    • chore(deps): bump the codeql-actions group across 1 directory with 3 updates
    • chore(deps): bump github.com/stretchr/testify from 1.11.1 to 1.12.1
    • Revert "ci: add temporary step to verify Linux repo signing keys"
    • ci: add temporary step to verify Linux repo signing keys
    • Accept pre-release tags in deployment validation (#14193)
    • chore: sign APT repositories with both keys
    • chore(deps): bump charm.land/lipgloss/v2 from 2.0.5 to 2.0.6
    • chore(deps): bump the aw-actions group with 2 updates
    • chore(deps): bump github.com/klauspost/compress from 1.19.1 to 1.19.2
    • Bump Go to 1.26.6
    • Upgrade gh-aw workflows to v0.85.4
    • chore(deps): bump github.com/google/go-containerregistry
    • chore(deps): bump google.golang.org/protobuf from 1.36.11 to 1.36.12
    • Address review: drop cleanup markers, document search-type in skill
    • Reconcile feature detection cleanup comment rules in AGENTS.md
    • Update AGENTS.md with cleanup comment guidance
    • Address review feedback
    • Add --search-type flag for semantic and hybrid issue search
    • Rename config mock constructors to match repo convention
    • Document when to use the config mock or the isolated config
    • Accept config content in NewIsolatedTestConfig
    • Clear auth environment variables in isolated test config
    • Isolate git config in tests that shell out to git
    • Rename config stub file to test.go
    • chore(deps): bump the aw-actions group with 2 updates
    • Add aw-actions group to dependabot configuration
    • Rename cli-code-reviewer skill to code-review (#14116)
    • chore(deps): bump github/gh-aw-actions/setup-cli from 0.83.4 to 0.85.4
    • Reduce item-add test diff
    • Isolate item-add test mocks
    • Test item-add output through command path
    • Run lint workflow when the lint workflow changes
    • Bump golangci-lint in CI to v2.12.2
    • Clarify PR testing section expectations
    • chore(deps): bump the codeql-actions group across 1 directory with 3 updates
    • chore(deps): bump azure/login from 3.0.0 to 3.0.1
    • chore(deps): bump actions/attest from 4.2.1 to 4.2.2
    • Use reflect.Pointer instead of deprecated reflect.Ptr
    • Add a scheduled tech debt burndown skill (#14095)
    • Restore automatic spam issue closure (#14088)
    • Give Dependabot triage a real reachability check (#14087)
    • Route release deletions through api.Client (#14077)
    • chore(deps): bump google.golang.org/grpc from 1.82.1 to 1.83.0
    • chore(deps): bump github.com/google/go-containerregistry
    • Grant the gate the scopes its CI read needs
    • Keep pre-flight dedup out of the integrity proxy
    • Key direct/indirect off the // indirect comment
    • Gate triager confidence on required evidence
    • Gate Dependabot triage on deterministic pre-flight check
    • Set GH_EXTENSION=1 when gh invokes an extension
    • Tell agents to use the PR template in AGENTS.md
    • Merge pull request #14062 from cli/williammartin-wp-08-release-create
    • Route extension requests through api.Client (#14059)
    • Route autolink requests through api.Client (#14013)
    • chore(deps): bump the codeql-actions group across 1 directory with 3 updates
    • fix(release create): trim spaces when parsing X-Oauth-Scopes
    • Match worktree rev-parse stub against absolute path on Windows
    • fix(pr/checkout): pass -- before worktree path so dash paths work
    • docs(pr/checkout): add worktree usage example to help text
    • docs(skills): mention pr checkout worktree support
    • chore(pr checkout): polish worktree related tests
    • Route gpg key requests through api.Client (#13997)
    • Use generated key in ssh-key acceptance test
    • Route ssh key…
Record
openSUSE-SU-2026:21663-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
gh
Azure Linux:3
before 2.97.0-1
2.97.0-1
gh
Debian:12
All versions, plus listed versions
2.23.0+dfsg1-12.24.3+dfsg1-12.27.0+dfsg1-12.30.0-12.30.0-2
Show 11 moreShow less
2.35.0-12.40.1+dfsg1-12.42.1-12.43.1-12.44.1-12.44.1-22.45.0-12.46.0-12.46.0-22.46.0-32.46.0-4
None known
gh
Debian:13
All versions, plus listed versions
2.46.0-32.46.0-4
None known
gh
Ubuntu:22.04:LTS
All versions, plus listed versions
2.4.0+dfsg1-12.4.0+dfsg1-2
None known
gh
Ubuntu:Pro:24.04:LTS
All versions, plus listed versions
2.27.0+dfsg1-1build12.30.0-22.35.0-12.40.1+dfsg1-12.42.1-1
Show 13 moreShow less
2.43.1-12.44.1-12.44.1-22.45.0-12.45.0-1build12.45.0-1ubuntu0.12.45.0-1ubuntu0.22.45.0-1ubuntu0.2+esm12.45.0-1ubuntu0.2+esm22.45.0-1ubuntu0.32.45.0-1ubuntu0.3+esm12.45.0-1ubuntu0.3+esm22.45.0-1ubuntu0.3+esm3
None known
gh
Ubuntu:26.10
All versions, plus listed versions
2.46.0-4
None known
gh
Ubuntu:Pro:26.04:LTS
All versions, plus listed versions
2.46.0-32.46.0-42.46.0-4ubuntu0.26.04.1~esm1
None known
gh
openSUSE:Tumbleweed
From an advisory covering 4 CVEs
before 2.97.0-1.1
2.97.0-1.1
gh
openSUSE:Leap 16.0
From an advisory covering 5 CVEs
before 2.98.0-bp160.1.1
2.98.0-bp160.1.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-64654 is a medium vulnerability (CVSS 5.3) in Cli, published August 6, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.77%, the 55th percentile. Fixed in gh 2.97.0-1.

References

Show 12 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open