cve.bz

CVE-2026-45803 github cli

3.5 lowExploit referenceEPSS 0.2%Fix available

Low (3.5) in github cli. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/cli/cli/v2 2.92.0.

On this page
`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.

Severity

CVSS 3.1

3.5 low
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 11th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-05-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-45803 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-45803?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-45803?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-45803 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
github:clifrom 1.6.0 before 2.92.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-crc3-h8v6-qh57Gogithub.com/cli/cli/v2<2.92.02.92.0
GHSA-crc3-h8v6-qh57Gogithub.com/cli/cli>=1.6.0 <=1.14.0no fix published
GO-2026-5335Gogithub.com/cli/cli>=1.6.0no fix published
GO-2026-5335Gogithub.com/cli/cli/v2<2.92.02.92.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13ghno fix listedDEBIAN-CVE-2026-45803
Ubuntu22.04:LTS, 25.10, 26.10 and 2 moreghno fix listedUBUNTU-CVE-2026-45803
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
Azure Linux3gh2.62.0-18AZL-87048

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Product Security rates this issue as having a Low security impact.

This issue results from insufficient sanitization of terminal control sequences in GitHub Actions workflow logs displayed by GitHub CLI. An attacker with the ability to influence workflow log output may inject terminal escape sequences that are replayed when a user views logs using the affected commands. Exploitation requires user interaction and primarily affects the integrity of information presented within the terminal session. The impact is limited to terminal display manipulation and does not directly result in disclosure of sensitive information or denial of service.

```

This vulnerability affects Github CLI versions greater than v1.6.0.

Components included with Red Hat Openshift GitOps and Red Hat OpenStack Platform 18.0 are not affected due to the absence of vulnerable Github CLI code as they use the Github CLI v1.2.1 in their containers or operators which are lower than than the affected one.

```

Red Hat's mitigation

As a workaround, log output can be sanitized before display, for example:

``` gh run view --log | cat -v ```

Users should exercise caution when viewing logs generated from untrusted workflow runs.

ProductPackageStateAdvisory
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel8Not affected
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel9Not affected
Red Hat OpenStack Platform 18.0rhoso-operators/openstack-operator-bundleNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-45803.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-134 Email Injection Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON