Skip to content

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

LowCVSS 3.5 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

10 packages: 1 fixed, 2 partially fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/gh(Debian 12) = 2.23.0+dfsg1-1; = 2.24.3+dfsg1-1; = 2.27.0+dfsg1-1; = 2.30.0-1 +13 more No fix listed No fix yet
debian/gh(Debian 13) = 2.46.0-3; = 2.46.0-4; All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux gh(Azure Linux 3.0) < 2.62.0-18; All versions 2.62.0-18 Partially fixed
cli github.com/cli/cli(Go) < 2.92.0; >= 1.6.0; >= 1.6.0, <= 1.14.0 2.92.0 Partially fixed
GitHub cli >= 1.6.0, < 2.92.0 2.92.0 Fixed
cli github.com/cli/cli = >= 1.6.0, < 2.92.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cli github.com/cli/cli = >= 1.6.0, < 2.92.0 No fix listed
cli github.com/cli/cli(Go) < 2.92.0 2.92.0
cli github.com/cli/cli(Go) >= 1.6.0, <= 1.14.0 No fix listed
cli github.com/cli/cli(Go) >= 1.6.0 No fix listed
ubuntu/gh(Ubuntu:22.04) All versions No fix listed
ubuntu/gh(Ubuntu:24.04) All versions No fix listed
ubuntu/gh(Ubuntu:26.04) All versions No fix listed
ubuntu/gh(Ubuntu:26.10) All versions No fix listed
GitHub cli >= 1.6.0, < 2.92.0 2.92.0
debian/gh(Debian:12) All versions No fix listed
debian/gh(Debian:12) = 2.23.0+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.24.3+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.27.0+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.30.0-1 No fix listed
debian/gh(Debian:12) = 2.30.0-2 No fix listed
debian/gh(Debian:12) = 2.35.0-1 No fix listed
debian/gh(Debian:12) = 2.40.1+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.42.1-1 No fix listed
debian/gh(Debian:12) = 2.43.1-1 No fix listed
debian/gh(Debian:12) = 2.44.1-1 No fix listed
debian/gh(Debian:12) = 2.44.1-2 No fix listed
debian/gh(Debian:12) = 2.45.0-1 No fix listed
debian/gh(Debian:12) = 2.46.0-1 No fix listed
debian/gh(Debian:12) = 2.46.0-2 No fix listed
debian/gh(Debian:12) = 2.46.0-3 No fix listed
Show 6 more
ProductAffected versionsFixed in
debian/gh(Debian:12) = 2.46.0-4 No fix listed
debian/gh(Debian:13) All versions No fix listed
debian/gh(Debian:13) = 2.46.0-3 No fix listed
debian/gh(Debian:13) = 2.46.0-4 No fix listed
azure linux gh(Azure Linux:3.0) All versions No fix listed
azure linux gh(Azure Linux:3.0) < 2.62.0-18 2.62.0-18

References