CVE-2026-72924GitHub CLI: `gh codespace ports forward` exposes forwarded services on all network…
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gh | Fix pending | UBUNTU-CVE-2026-72924 | |
| Ubuntu 26.04 | gh | Fix pending | UBUNTU-CVE-2026-72924 | |
| Ubuntu 24.04 | gh | Fix pending | UBUNTU-CVE-2026-72924 | |
| Ubuntu 22.04 | gh | Under investigation | UBUNTU-CVE-2026-72924 | |
| Debian 13 | gh | Fix pending | DEBIAN-CVE-2026-72924 | |
| Debian 12 | gh | Fix pending | DEBIAN-CVE-2026-72924 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cli: affected: >= 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.