# CVE-2026-72924: GitHub CLI: `gh codespace ports forward` exposes forwarded services on all network interfaces by default

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-08-25T21:03:11.560Z
- Modified: 2026-09-09T21:07:31.353Z
- Weaknesses: CWE-668, CWE-1327
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- cli cli: >= 2.28.0, < 2.98.0

## References

- <https://github.com/cli/cli/security/advisories/GHSA-vfhh-p7hm-pxfh>
- <https://github.com/cli/cli/releases/tag/v2.98.0>

## Sources

- CVE List: [CVE-2026-72924](https://www.cve.org/CVERecord?id=CVE-2026-72924), CVE Terms of Use, modified 2026-08-26
- NVD: [CVE-2026-72924](https://nvd.nist.gov/vuln/detail/CVE-2026-72924), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-72924 · Whole record: https://cve.day/CVE-2026-72924.json · Rebuilt by cve.day 2026-11-25T22:59:35.224Z
