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

- Severity: Low 2.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2025-05-30T15:30:39.000Z
- Modified: 2026-09-10T03:50:57.499Z
- Also known as: GHSA-g9f5-x53j-h563, GO-2025-3732
- Related: CGA-rr3v-6hvw-xv36
- Weaknesses: CWE-501
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- cli go-gh: < 2.12.1; before 2.12.1
- github.com/cli/go-gh/v2 (Go): before 2.12.1

## Every score

- GitHub_M: CVSS:4.0 2.6 Low `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`
- GitHub: rating Medium
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577> (fix, patch, web)
- <https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go> (product)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48938> (advisory)
- <https://github.com/cli/go-gh> (package)

## Sources

- CVE List: [CVE-2025-48938](https://www.cve.org/CVERecord?id=CVE-2025-48938), CVE Terms of Use, modified 2025-05-30
- GitHub Advisory Database: [GHSA-g9f5-x53j-h563](https://github.com/advisories/GHSA-g9f5-x53j-h563), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3732](https://pkg.go.dev/vuln/GO-2025-3732), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-48938](https://nvd.nist.gov/vuln/detail/CVE-2025-48938), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2025-48938 · Whole record: https://cve.day/CVE-2025-48938.json · Rebuilt by cve.day 2026-11-25T22:58:58.604Z
