Security Vulnerability Report
中文
CVE-2026-45803 CVSS 3.5 LOW

CVE-2026-45803

Published: 2026-05-15 16:16:15
Last Modified: 2026-05-15 19:17:03

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.

CVSS Details

CVSS Score
3.5
Severity
LOW
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

Configurations (Affected Products)

No configuration data available.

GitHub CLI >= 1.6.0, < 2.92.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Malicious GitHub Actions Workflow to demonstrate escape sequence injection name: POC-CVE-2026-45803 on: [pull_request] jobs: test: runs-on: ubuntu-latest steps: - name: Inject Escape Sequence run: | # This injects an escape sequence to change the window title # \033 is ESC, ]0; sets window title, \007 is BEL (terminator) echo -e "\033]0;VULNERABLE_SYSTEM\007" # This injects a sequence to hide text (example) echo -e "\033[8m"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-45803", "sourceIdentifier": "[email protected]", "published": "2026-05-15T16:16:15.280", "lastModified": "2026-05-15T19:17:03.017", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "`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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N", "baseScore": 3.5, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.1, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-150"}]}], "references": [{"url": "https://github.com/cli/cli/security/advisories/GHSA-crc3-h8v6-qh57", "source": "[email protected]"}, {"url": "https://github.com/cli/cli/security/advisories/GHSA-crc3-h8v6-qh57", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}