CVE-2025-48938Prevent GitHub CLI and extensions from executing arbitrary commands from compromised…
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
Fixed builds are available from Go: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-cli-go-gh | Fix pending | UBUNTU-CVE-2025-48938 | |
| Ubuntu 26.10 | golang-github-cli-go-gh-v2 | Fix pending | UBUNTU-CVE-2025-48938 | |
| Ubuntu 26.04 | golang-github-cli-go-gh | Under investigation | UBUNTU-CVE-2025-48938 | |
| Ubuntu 26.04 | golang-github-cli-go-gh-v2 | Under investigation | UBUNTU-CVE-2025-48938 | |
| Ubuntu 25.10 | golang-github-cli-go-gh | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-48938 | |
| Ubuntu 25.10 | golang-github-cli-go-gh-v2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-48938 | |
| Ubuntu 24.04 | golang-github-cli-go-gh | Under investigation | UBUNTU-CVE-2025-48938 | |
| Ubuntu 24.04 | golang-github-cli-go-gh-v2 | Fix pending | UBUNTU-CVE-2025-48938 | |
| Debian 14 | golang-github-cli-go-gh-v2 | Fix pending | DEBIAN-CVE-2025-48938 | |
| Debian 13 | golang-github-cli-go-gh | Fix pending | DEBIAN-CVE-2025-48938 | |
| Debian 13 | golang-github-cli-go-gh-v2 | Fix pending | DEBIAN-CVE-2025-48938 | |
| Debian 12 | golang-github-cli-go-gh | Fix pending | DEBIAN-CVE-2025-48938 | |
| Go library | github.com/cli/go-gh/v2 | Fixed | 2.12.1 | GHSA-g9f5-x53j-h563 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cli go-gh: affected: < 2.12.1
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.