Impact
GitHub CLI (gh) printed content from external sources such as gists, pull requests, releases, codespaces, skills, or agent‑tasks without neutralizing terminal escape sequences. An attacker who can influence that content can embed escape sequences that the terminal interprets, causing cosmetic changes or, on some terminals, execution of arbitrary commands. The flaw is a classic terminal escape sequence injection, classified as CWE‑150 and CWE‑78. The CVSS score of 5.3 indicates moderate severity.
Affected Systems
All installations of GitHub CLI older than version 2.97.0 on any supported operating system are vulnerable. The issue is fixed in release 2.97.0 and later.
Risk and Exploitability
The vulnerability requires the attacker to control content that the CLI fetches or that a user supplies. Exploitation occurs locally when a user runs an affected gh command; the terminal interprets injected escape sequences. The EPSS score of <1% (approximately 0.00736) indicates a low likelihood of exploitation, but the potential for command execution and the lack of a KEV listing suggest a non‑negligible risk for users who run gh commands in scripts or unattended sessions.
OpenCVE Enrichment