Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cli | go-gh | before 2.12.1 | 2.12.1 | Patch available | CNA |
| — | github.com/cli/go-gh/v2 (Go) | before 2.12.1 | 2.12.1 | Patch available | GHSA-g9f5-x53j-h563 |
- go-gh Vendorcli Affected before 2.12.1 Fixed in 2.12.1 Patch available CNA
- github.com/cli/go-gh/v2 (Go) Vendor— Affected before 2.12.1 Fixed in 2.12.1 Patch available GHSA-g9f5-x53j-h563
Remediation
- Fix · CNA go-gh (cli) Fixed in 2.12.1
- Fix · GHSA-g9f5-x53j-h563 github.com/cli/go-gh/v2 (Go) Fixed in 2.12.1 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-48938
- 2026-10-03 Alias added: GHSA-g9f5-x53j-h563
References
Advisory 2
More cli Go-gh vulnerabilities
- TI-2024-36052 go-gh `auth.TokenForHost` violates GitHub host security boundary within a codespace CVSS 3.1HIGH 7.5
Sources
- CVE-2025-48938 · CVE Program
- CVE-2025-48938 · NVD
- FIRST EPSS
- GHSA-g9f5-x53j-h563 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-48938 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences