CyberRota Analysis
AI-GeneratedThe GitHub CLI (gh) versions 2.28.0 through 2.97.0 are vulnerable due to a default configuration that binds the local listener for port forwarding to all network interfaces, potentially exposing services in a Codespace to unauthorized access from other hosts on the same network. This could allow a network-adjacent attacker to exploit the service while port forwarding is active. Users of the GitHub CLI, particularly those utilizing Codespaces, should prioritize upgrading to version 2.98.0 to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.