Skip to content

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

LowCVSS 2.1 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

11 packages: 0 fixed, 1 partially fixed, 9 with no fix yet.

PackageAffectedFixed inStatus
debian/gh(Debian 12) = 2.23.0+dfsg1-1; = 2.24.3+dfsg1-1; = 2.27.0+dfsg1-1; = 2.30.0-1 +13 more No fix listed No fix yet
debian/gh(Debian 13) = 2.46.0-3; = 2.46.0-4; All versions No fix listed No fix yet
redhat/openshift-gitops-1/argocd-rhel8(Red Hat openshift_gitops 1) All versions No fix listed No fix yet
redhat/openshift-gitops-1/argocd-rhel9(Red Hat openshift_gitops 1) All versions No fix listed No fix yet
redhat/rhoso-operators/openstack-operator-bundle(Red Hat openstack 18.0) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/gh(Ubuntu 26.10) All versions No fix listed No fix yet
azure linux gh(Azure Linux 3.0) < 2.101.0-1; All versions 2.101.0-1 Partially fixed
cli github.com/cli/cli = >= 2.28.0, < 2.98.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cli github.com/cli/cli = >= 2.28.0, < 2.98.0 No fix listed
redhat/openshift-gitops-1/argocd-rhel8(Red Hat:openshift_gitops:1) All versions No fix listed
redhat/openshift-gitops-1/argocd-rhel9(Red Hat:openshift_gitops:1) All versions No fix listed
redhat/rhoso-operators/openstack-operator-bundle(Red Hat:openstack:18.0) All versions No fix listed
debian/gh(Debian:12) All versions No fix listed
debian/gh(Debian:12) = 2.23.0+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.24.3+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.27.0+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.30.0-1 No fix listed
debian/gh(Debian:12) = 2.30.0-2 No fix listed
debian/gh(Debian:12) = 2.35.0-1 No fix listed
debian/gh(Debian:12) = 2.40.1+dfsg1-1 No fix listed
debian/gh(Debian:12) = 2.42.1-1 No fix listed
debian/gh(Debian:12) = 2.43.1-1 No fix listed
debian/gh(Debian:12) = 2.44.1-1 No fix listed
debian/gh(Debian:12) = 2.44.1-2 No fix listed
debian/gh(Debian:12) = 2.45.0-1 No fix listed
debian/gh(Debian:12) = 2.46.0-1 No fix listed
debian/gh(Debian:12) = 2.46.0-2 No fix listed
debian/gh(Debian:12) = 2.46.0-3 No fix listed
debian/gh(Debian:12) = 2.46.0-4 No fix listed
debian/gh(Debian:13) All versions No fix listed
debian/gh(Debian:13) = 2.46.0-3 No fix listed
debian/gh(Debian:13) = 2.46.0-4 No fix listed
ubuntu/gh(Ubuntu:22.04) All versions No fix listed
Show 5 more
ProductAffected versionsFixed in
ubuntu/gh(Ubuntu:24.04) All versions No fix listed
ubuntu/gh(Ubuntu:26.04) All versions No fix listed
ubuntu/gh(Ubuntu:26.10) All versions No fix listed
azure linux gh(Azure Linux:3.0) All versions No fix listed
azure linux gh(Azure Linux:3.0) < 2.101.0-1 2.101.0-1

References