Vulnerability · Published Aug 25, 2026 · Assigned by GitHub_M
CVE-2026-72924GitHub CLI: `gh codespace ports forward` exposes forwarded services on all network interfaces by default
Low 2.1
In plain English
A low-severity security flaw in cli from cli. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities).
Official description
GitHub CLI (gh) is GitHub's official command line tool. Versions 2.28.0 through 2.97.0 bind the local listener created by gh codespace ports forward to all available network interfaces by default. While port forwarding is active, a service in a Codespace can therefore become reachable through the user's non-loopback local IP addresses by other hosts that can route to the user's machine. This behavior does not change the GitHub-side visibility of the Codespaces port. Instead, it exposes the forwarded service through a wildcard-bound listener on the user's local machine, even when the source Codespaces port remains private. Exploitation requires a network-adjacent attacker to reach the victim's machine while forwarding is active. This issue is fixed in version 2.98.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | gh | no fix listed | DEBIAN-CVE-2026-72924 |
| Debian:13 | gh | no fix listed | DEBIAN-CVE-2026-72924 |
| Ubuntu:22.04:LTS | gh | no fix listed | UBUNTU-CVE-2026-72924 |
| Ubuntu:26.10 | gh | no fix listed | UBUNTU-CVE-2026-72924 |
Affected products (as reported)
Weakness: CWE-1327, CWE-668 · Vector: CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/cli/cli/security/advisories/GHSA-vfhh-p7hm-pxfh x_refsource_CONFIRM
- https://github.com/cli/cli/releases/tag/v2.98.0 x_refsource_MISC