CVE-2025-48938
Cli Go-gh vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Go-gh. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Cli Go-gh runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563 · Mitigation
- github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577 · Patch
- github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go
- nvd.nist.gov/vuln/detail/CVE-2025-48938
- github.com/advisories/GHSA-g9f5-x53j-h563
- nvd.nist.gov/vuln/detail/CVE-2025-48938
- cve.org/CVERecord?id=CVE-2025-48938
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.