CVEfocus › CVE database › CVE-2025-48938

CVE-2025-48938Prevent GitHub CLI and extensions from executing arbitrary commands from compromised…

CVSS 2.6 LowEPSS 1.1% (higher than 64% of CVEs)Published 2025-05-30Updated 2025-05-30Assigner: GitHub_M

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.

CWE-501

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

1Fixed
7Fix pending
3Under investigation
2Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-github-cli-go-ghFix pendingUBUNTU-CVE-2025-48938
Ubuntu 26.10golang-github-cli-go-gh-v2Fix pendingUBUNTU-CVE-2025-48938
Ubuntu 26.04golang-github-cli-go-ghUnder investigationUBUNTU-CVE-2025-48938
Ubuntu 26.04golang-github-cli-go-gh-v2Under investigationUBUNTU-CVE-2025-48938
Ubuntu 25.10golang-github-cli-go-ghWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-48938
Ubuntu 25.10golang-github-cli-go-gh-v2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-48938
Ubuntu 24.04golang-github-cli-go-ghUnder investigationUBUNTU-CVE-2025-48938
Ubuntu 24.04golang-github-cli-go-gh-v2Fix pendingUBUNTU-CVE-2025-48938
Debian 14golang-github-cli-go-gh-v2Fix pendingDEBIAN-CVE-2025-48938
Debian 13golang-github-cli-go-ghFix pendingDEBIAN-CVE-2025-48938
Debian 13golang-github-cli-go-gh-v2Fix pendingDEBIAN-CVE-2025-48938
Debian 12golang-github-cli-go-ghFix pendingDEBIAN-CVE-2025-48938
Go librarygithub.com/cli/go-gh/v2Fixed2.12.1GHSA-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.

References

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.