Skip to main content

GitHub CLI (gh) is GitHub's official command line tool. (CVE-2026-72924)

0
Medium
Published: 08/25/2026 (08/25/2026, 21:17:00 UTC)
Source: GCVE Database
Product: gh

Description

GitHub CLI (gh) versions 2.28.0 through 2.97.0 have a security issue where the local listener created by the codespace ports forward feature binds to all network interfaces by default. This allows services running in a Codespace to be reachable via the user's non-loopback local IP addresses by other hosts on the same network, even if the Codespaces port itself remains private. The issue requires a network-adjacent attacker to access the victim's machine while port forwarding is active. The vulnerability is fixed in version 2.98.0.

CVSS v4.0

Attack Vector
Adjacent Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Ubuntu:22.04:LTSmore threats →ghsa
gh
pkg:deb/ubuntu/gh?arch=source&distro=jammy
Affected versions
=2.4.0+dfsg1-1=2.4.0+dfsg1-2
Ubuntu:Pro:24.04:LTSmore threats →ghsa
gh
pkg:deb/ubuntu/gh?arch=source&distro=esm-apps/noble
Affected versions
=2.27.0+dfsg1-1build1=2.30.0-2=2.35.0-1=2.40.1+dfsg1-1=2.42.1-1=2.43.1-1=2.44.1-1=2.44.1-2=2.45.0-1=2.45.0-1build1=2.45.0-1ubuntu0.1=2.45.0-1ubuntu0.2=2.45.0-1ubuntu0.2+esm1=2.45.0-1ubuntu0.2+esm2=2.45.0-1ubuntu0.3=2.45.0-1ubuntu0.3+esm1=2.45.0-1ubuntu0.3+esm2=2.45.0-1ubuntu0.3+esm3
Ubuntu:26.10more threats →ghsa
gh
pkg:deb/ubuntu/gh?arch=source&distro=stonking
Affected versions
=2.46.0-4
Ubuntu:Pro:26.04:LTSmore threats →ghsa
gh
pkg:deb/ubuntu/gh?arch=source&distro=esm-apps/resolute
Affected versions
=2.46.0-3=2.46.0-4=2.46.0-4ubuntu0.26.04.1~esm1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 23:49:10 UTC

Technical Analysis

GitHub CLI (gh) versions 2.28.0 through 2.97.0 bind the local listener for codespace ports forwarding to all available network interfaces by default. This behavior exposes forwarded services on the user's local machine to other hosts on the same network, potentially allowing network-adjacent attackers to reach services that should remain private. The exposure is limited to the local machine's network interfaces and does not affect GitHub-side visibility of the Codespaces ports. The issue is resolved in version 2.98.0.

Potential Impact

An attacker on the same network as the victim can access forwarded services on the victim's machine that are intended to be private to the Codespace environment. This could lead to unauthorized access to services exposed via port forwarding while active. The impact is limited to network-adjacent attackers and requires the victim to have active port forwarding via GitHub CLI.

Mitigation Recommendations

Upgrade GitHub CLI (gh) to version 2.98.0 or later, where this issue is fixed. Until upgraded, avoid enabling codespace ports forwarding on untrusted or public networks to reduce exposure risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-72924
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.10","Ubuntu:Pro:26.04:LTS"]
Cvss Version
4.0

Threat ID: 6ad3f58e2cdf04f6566621d9

Added to database: 10/17/2026, 22:24:14 UTC

Last enriched: 10/17/2026, 23:49:10 UTC

Last updated: 10/17/2026, 23:49:10 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses