CVE-2026-45803 gh: GitHub Actions log output in `gh run view` allows terminal escape sequence injection

Low 3.5 Published Updated

Attackers can inject terminal escape sequences into GitHub Actions logs, potentially executing arbitrary commands or manipulating the terminal when users view logs.

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

What is CVE-2026-45803?

CVE-2026-45803 is a low-severity command injection vulnerability in cli, published on 15 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

`gh` is GitHub’s official command line tool. From 1.6.0 to before 2.92.0, a security vulnerability has been identified in GitHub CLI that could allow terminal escape sequence injection when users view GitHub Actions workflow logs using gh run view --log or gh run view --log-failed. The vulnerability stems from the way GitHub CLI handles raw Actions log output. The gh run view --log and gh run view --log-failed commands stream workflow log lines to stdout or the configured pager without sanitizing terminal control sequences. An attacker who can influence GitHub Actions log content, for example via a PR triggered workflow, can embed escape sequences that are replayed in the user's terminal when they inspect the run. Depending on the victim's terminal emulator, injected sequences could change the window title, manipulate on screen content, or in some terminal emulators (such as screen) potentially execute arbitrary commands. This vulnerability is fixed in 2.92.0.

Weakness: CWE-150

Which versions are affected by CVE-2026-45803?

6 open source packages ship an affected version, including github.com/cli/cli and github.com/cli/cli/v2. It affects 1 product.

PackageAffectedFixed in
github.com/cli/cli GoFrom 1.6.0None
github.com/cli/cli GoFrom 1.6.0 to 1.14.0None
github.com/cli/cli GoFrom 1.6.0 to 1.14.0None
github.com/cli/cli/v2 GoAll versions2.92.0
github.com/cli/cli/v2 GoAll versions2.92.0
github.com/cli/cli/v2 GoAll versions2.92.0

Products include Github Cli.

How do I fix CVE-2026-45803?

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-45803 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45803 exists.

Sources

Also known as AZL-87048, DEBIAN-CVE-2026-45803, GHSA-crc3-h8v6-qh57, GO-2026-5335, UBUNTU-CVE-2026-45803.

Is CVE-2026-45803 in your software?

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

Check your SBOMs for free