CVE-2025-48938 json
Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
published 2025-05-30 17 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-16493 , GHSA-g9f5-x53j-h563 , GO-2025-3732
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/cli/go-gh/v2 2.12.1
- cli go-gh 2.12.1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250612T141001-1.1
opensuse advisories openSUSE-SU-2025:15225-1
- github.com/cli/go-gh@a08820a commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-48938 updated cvss 6.3
github.com/cli/go-gh/pkg/browser: github.com/cli/go-gh/v2/pkg/browser: GitHub CLI may execute arbitrary commands from compromised GitHub Enterprise Server
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 2.6 | 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 |
| CNA | 4.0 | 2.6 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/cli/go-gh/v2 | <2.12.1 |
2.12.1 |
Affected products
- cli go-gh
Classification
- Weakness
-
- CWE-501 Trust Boundary Violation
References
-
github.com
/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577
web, patch
-
github.com
/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563
web, mitigation, vendor-advisory, advisory
-
github.com
/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go
product
-
nvd.nist.gov
/vuln/detail/CVE-2025-48938
advisory
-
github.com
/cli/go-gh
package
Sources
- CVE List CVE-2025-48938
- GitHub Advisory GHSA-g9f5-x53j-h563
- NVD CVE-2025-48938
- OSV GO-2025-3732
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.