CVE-2025-48938 Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
13 packages: 3 fixed, 10 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/golang-github-cli-go-gh(Debian 12) | = 1.0.0-1; = 1.2.1-1; = 1.2.1-2; All versions | No fix listed | No fix yet |
| debian/golang-github-cli-go-gh(Debian 13) | = 1.2.1-2; All versions | No fix listed | No fix yet |
| debian/golang-github-cli-go-gh-v2(Debian 13) | = 2.6.0-2; All versions | No fix listed | No fix yet |
| debian/golang-github-cli-go-gh-v2(Debian 14) | = 2.6.0-2; All versions | No fix listed | No fix yet |
| ubuntu/golang-github-cli-go-gh(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-cli-go-gh(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-cli-go-gh(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-cli-go-gh-v2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-cli-go-gh-v2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/golang-github-cli-go-gh-v2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux gh(Azure Linux 3.0) | < 2.62.0-9 | 2.62.0-9 | Fixed |
| cli github.com/cli/go-gh/v2 | < 2.12.1; = < 2.12.1 | 2.12.1 | Fixed |
| cli github.com/cli/go-gh/v2(Go) | < 2.12.1 | 2.12.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cli github.com/cli/go-gh/v2(Go) | < 2.12.1 | 2.12.1 |
| azure linux gh(Azure Linux:3.0) | < 2.62.0-9 | 2.62.0-9 |
| debian/golang-github-cli-go-gh(Debian:12) | All versions | No fix listed |
| debian/golang-github-cli-go-gh(Debian:12) | = 1.0.0-1 | No fix listed |
| debian/golang-github-cli-go-gh(Debian:12) | = 1.2.1-1 | No fix listed |
| debian/golang-github-cli-go-gh(Debian:12) | = 1.2.1-2 | No fix listed |
| debian/golang-github-cli-go-gh(Debian:13) | All versions | No fix listed |
| debian/golang-github-cli-go-gh(Debian:13) | = 1.2.1-2 | No fix listed |
| debian/golang-github-cli-go-gh-v2(Debian:13) | All versions | No fix listed |
| debian/golang-github-cli-go-gh-v2(Debian:13) | = 2.6.0-2 | No fix listed |
| debian/golang-github-cli-go-gh-v2(Debian:14) | All versions | No fix listed |
| debian/golang-github-cli-go-gh-v2(Debian:14) | = 2.6.0-2 | No fix listed |
| cli github.com/cli/go-gh/v2 | = < 2.12.1 | No fix listed |
| ubuntu/golang-github-cli-go-gh(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-cli-go-gh-v2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-github-cli-go-gh(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-cli-go-gh-v2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-github-cli-go-gh(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/golang-github-cli-go-gh-v2(Ubuntu:26.10) | All versions | No fix listed |
| cli github.com/cli/go-gh/v2 | < 2.12.1 | 2.12.1 |
References
- https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563 mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577 patch
- github.com product
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-48938 vendor-advisory
- github.com
- https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go product
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking