CVE-2025-48938

Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server

Published May 30, 2025 CVSS 4.0 · 2.6 Low EPSS < 1% KEV · Not listed
Description
go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier. A security vulnerability has been identified in versions prior to 2.12.1 where an attacker-controlled GitHub Enterprise Server could result in executing arbitrary commands on a user's machine by replacing HTTP URLs provided by GitHub with local file paths for browsing. In `2.12.1`, `Browser.Browse()` has been enhanced to allow and disallow a variety of scenarios to avoid opening or executing files on the filesystem without unduly impacting HTTP URLs. No known workarounds are available other than upgrading.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-16493 Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
Github GHSA Github GHSA GHSA-g9f5-x53j-h563 Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
History
Type Values Removed Values Added
CPEs cpe:2.3:a:cli:go-gh:*:*:*:*:*:*:*:* cpe:2.3:a:cli:go-gh:*:*:*:*:*:go:*:*
Type Values Removed Values Added
First Time appeared Cli
Cli go-gh
CPEs cpe:2.3:a:cli:go-gh:*:*:*:*:*:*:*:*
Vendors & Products Cli
Cli go-gh
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description go-gh is a collection of Go modules to make authoring GitHub CLI extensions easier. A security vulnerability has been identified in versions prior to 2.12.1 where an attacker-controlled GitHub Enterprise Server could result in executing arbitrary commands on a user's machine by replacing HTTP URLs provided by GitHub with local file paths for browsing. In `2.12.1`, `Browser.Browse()` has been enhanced to allow and disallow a variety of scenarios to avoid opening or executing files on the filesystem without unduly impacting HTTP URLs. No known workarounds are available other than upgrading.
Title Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
Weaknesses CWE-501
References
Metrics cvssV4_0

{'score': 2.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:U'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 30, 2025, 8:38 PM
Reserved
May 28, 2025, 6:49 PM
Status
Analyzed
Published
May 30, 2025, 7:15 PM
Modified
Aug 17, 2026, 12:05 PM