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).

Severity (CVSS 4.0)2.1Low
Exploit odds (30 days)0.3%top 82.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12ghno fix listedDEBIAN-CVE-2026-72924
Debian:13ghno fix listedDEBIAN-CVE-2026-72924
Ubuntu:22.04:LTSghno fix listedUBUNTU-CVE-2026-72924
Ubuntu:26.10ghno fix listedUBUNTU-CVE-2026-72924

Affected products (as reported)

VendorProductVersions
cli cli >= 2.28.0, < 2.98.0

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