CVE-2025-48938
Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
2.6
Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
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.
- Record
CVE-2025-48938- 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 - Weakness
- CWE-501
- Updated
- 2026-11-02
EUVDEUVD-2025-16493
2.6
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.
- Record
EUVD-2025-16493- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-g9f5-x53j-h563 No score
Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
Summary
A security vulnerability has been identified in go-gh 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.
Details
The GitHub CLI and CLI extensions allow users to transition from their terminal for a variety of use cases through the Browser capability in github.com/cli/go-gh/v2/pkg/browser:
- Using the
-w, --webflag, GitHub CLI users can view GitHub repositories, issues, pull requests, and more using their web browser - Using the
gh codespacecommand set, GitHub CLI users can transition to Visual Studio Code to work with GitHub Codespaces
This is done by using URLs provided through API responses from authenticated GitHub hosts when users execute gh commands.
Prior to 2.12.1, Browser.Browse() would attempt to open the provided URL using a variety of OS-specific approaches regardless of the scheme. An attacker-controlled GitHub Enterprise Server could modify API responses to use a specially tailored local executable path instead of HTTP URLs to resources. This could allow the attacker to execute arbitrary executables on the user's machine.
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:
- URLs with
http://,https://,vscode://,vscode-insiders://protocols are supported - URLs with
file://protocol are unsupported - URLs matching files or directories on the filesystem are unsupported
- URLs matching executables in the user's path are unsupported
URLs without protocols will be browsable if none of these other conditions apply.
As we have more information about use cases, maintainers can expand these capabilities for an improved user experience that allows configuring allowed URL schemes and/or prompt the user for an unexpected user case and confirming whether to continue.
Impact
Successful exploitation could cause users of the attacker-controlled GitHub Enterprise Server to execute arbitrary commands.
Remediation and Mitigation
- Upgrade
go-ghto2.12.1
- Record
GHSA-g9f5-x53j-h563- Weakness
- CWE-501
- Updated
- 2026-11-02
NVD
2.6
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.
- Record
CVE-2025-48938- 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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 - Weakness
- CWE-501
- Updated
- 2026-11-02
OSV
2.6
Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
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.
- Record
CVE-2025-48938- 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 - Weakness
- CWE-501
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-48938
9.8
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.
- Record
DEBIAN-CVE-2025-48938- 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 - Updated
- 2026-11-02
Show 5 moreShow less
OSVUBUNTU-CVE-2025-48938
2.6
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.
- Record
UBUNTU-CVE-2025-48938- 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 - 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 - Updated
- 2026-11-02
OSVAZL-62282 No score
CVE-2025-48938 affecting package gh for versions less than 2.62.0-9
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.
- Record
AZL-62282- Updated
- 2026-11-02
OSVGHSA-g9f5-x53j-h563 No score
Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server
Summary
A security vulnerability has been identified in go-gh 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.
Details
The GitHub CLI and CLI extensions allow users to transition from their terminal for a variety of use cases through the Browser capability in github.com/cli/go-gh/v2/pkg/browser:
- Using the
-w, --webflag, GitHub CLI users can view GitHub repositories, issues, pull requests, and more using their web browser - Using the
gh codespacecommand set, GitHub CLI users can transition to Visual Studio Code to work with GitHub Codespaces
This is done by using URLs provided through API responses from authenticated GitHub hosts when users execute gh commands.
Prior to 2.12.1, Browser.Browse() would attempt to open the provided URL using a variety of OS-specific approaches regardless of the scheme. An attacker-controlled GitHub Enterprise Server could modify API responses to use a specially tailored local executable path instead of HTTP URLs to resources. This could allow the attacker to execute arbitrary executables on the user's machine.
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:
- URLs with
http://,https://,vscode://,vscode-insiders://protocols are supported - URLs with
file://protocol are unsupported - URLs matching files or directories on the filesystem are unsupported
- URLs matching executables in the user's path are unsupported
URLs without protocols will be browsable if none of these other conditions apply.
As we have more information about use cases, maintainers can expand these capabilities for an improved user experience that allows configuring allowed URL schemes and/or prompt the user for an unexpected user case and confirming whether to continue.
Impact
Successful exploitation could cause users of the attacker-controlled GitHub Enterprise Server to execute arbitrary commands.
Remediation and Mitigation
- Upgrade
go-ghto2.12.1
- Record
GHSA-g9f5-x53j-h563- Weakness
- CWE-501
- Updated
- 2026-11-02
OSVGO-2025-3732 No score
GitHub CLI and extensions can execute arbitrary commands on compromised GitHub Enterprise Server in github.com/cli/go-gh
GitHub CLI and extensions can execute arbitrary commands on compromised GitHub Enterprise Server in github.com/cli/go-gh
- Record
GO-2025-3732- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15225-1 No score
govulncheck-vulndb-0.0.20250612T141001-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250612T141001-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15225-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/cli/go-gh/v2Go |
before 2.12.1 | 2.12.1 |
ghAzure Linux:3 |
before 2.62.0-9 | 2.62.0-9 |
golang-github-cli-go-ghDebian:12 |
All versions, plus listed versions 1.0.0-11.2.1-11.2.1-2 |
None known |
golang-github-cli-go-ghDebian:13 |
All versions, plus listed versions 1.2.1-2 |
None known |
golang-github-cli-go-gh-v2Debian:13 |
All versions, plus listed versions 2.6.0-2 |
None known |
golang-github-cli-go-gh-v2Debian:14 |
All versions, plus listed versions 2.6.0-2 |
None known |
golang-github-cli-go-ghUbuntu:24.04:LTS |
All versions, plus listed versions 1.2.1-1 |
None known |
golang-github-cli-go-gh-v2Ubuntu:Pro:24.04:LTS |
All versions, plus listed versions 2.0.0-22.3.0-12.4.0+git20231120.d32c104-12.5.0-12.6.0-12.6.0-1ubuntu0.24.04.1~esm1 |
None known |
golang-github-cli-go-ghUbuntu:25.10 |
All versions, plus listed versions 1.2.1-2 |
None known |
golang-github-cli-go-gh-v2Ubuntu:25.10 |
All versions, plus listed versions 2.6.0-2 |
None known |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
golang-github-cli-go-ghUbuntu:26.10 |
All versions, plus listed versions 1.2.1-2 |
None known |
golang-github-cli-go-gh-v2Ubuntu:26.10 |
All versions, plus listed versions 2.6.0-2 |
None known |
golang-github-cli-go-ghUbuntu:26.04:LTS |
All versions, plus listed versions 1.2.1-2 |
None known |
golang-github-cli-go-gh-v2Ubuntu:26.04:LTS |
All versions, plus listed versions 2.6.0-2 |
None known |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 29 CVEs |
before 0.0.20250612T141001-1.1 | 0.0.20250612T141001-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-48938 is a low vulnerability (CVSS 2.6) in Cli Go-gh, published May 30, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 47th percentile. Fixed in github.com/cli/go-gh/v2 2.12.1.
References
github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563
github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577
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
github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48938.json
Show 33 moreShow less
security-tracker.debian.org/tracker/CVE-2025-48938
github.com/cli/go-gh
ubuntu.com/security/CVE-2025-48938
cve.org/CVERecord?id=CVE-2025-48938
suse.com/security/cve/CVE-2020-36846
suse.com/security/cve/CVE-2022-31022
suse.com/security/cve/CVE-2023-42818
suse.com/security/cve/CVE-2025-0913
suse.com/security/cve/CVE-2025-1792
suse.com/security/cve/CVE-2025-22874
suse.com/security/cve/CVE-2025-25207
suse.com/security/cve/CVE-2025-25208
suse.com/security/cve/CVE-2025-2571
suse.com/security/cve/CVE-2025-29785
suse.com/security/cve/CVE-2025-3230
suse.com/security/cve/CVE-2025-3260
suse.com/security/cve/CVE-2025-3454
suse.com/security/cve/CVE-2025-3611
suse.com/security/cve/CVE-2025-3913
suse.com/security/cve/CVE-2025-4128
suse.com/security/cve/CVE-2025-4573
suse.com/security/cve/CVE-2025-4673
suse.com/security/cve/CVE-2025-47950
suse.com/security/cve/CVE-2025-48494
suse.com/security/cve/CVE-2025-48495
suse.com/security/cve/CVE-2025-48710
suse.com/security/cve/CVE-2025-48865
suse.com/security/cve/CVE-2025-48938
suse.com/security/cve/CVE-2025-48948
suse.com/security/cve/CVE-2025-48949
suse.com/security/cve/CVE-2025-49011
suse.com/security/cve/CVE-2025-49136
suse.com/security/cve/CVE-2025-49140