{"id":"CVE-2025-48938","published":"2025-05-30T18:45:59Z","modified":"2025-05-30T20:38:51Z","title":"Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server","vendor":"cli","product":"go-gh","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00564,"percentile":0.4775,"provenance":"source"},"cwes":[{"id":"CWE-501","name":"Trust Boundary Violation"}],"references":[{"url":"https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577","tags":["x_refsource_MISC"]},{"url":"https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go","tags":["x_refsource_MISC"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":9.55},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"cli","affectedVersions":[{"vendor":"cli","product":"go-gh","versions":["< 2.12.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-30T20:38:39.328661Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cli/go-gh/v2","vulnerableRanges":["<2.12.1"],"patched":["2.12.1"],"from":["GHSA-g9f5-x53j-h563","GO-2025-3732"],"provenance":"source"}],"summary":{"text":"The go-gh Go module library, used for authoring GitHub CLI extensions, contains a flaw in its browser handling (Browser.Browse()) in versions prior to 2.12.1, where HTTP URLs supplied by GitHub can be replaced with local file paths. An attacker who controls a GitHub Enterprise Server can exploit this to execute arbitrary commands on a user's machine, requiring that the user have low-privileged authentication to the server and no further user interaction beyond normal use of the affected tooling.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:45Z"},"euvd":{"id":"EUVD-2025-16493","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-53859","published":"2024-11-27","fixed":"2.11.1","kev":false,"link":{"from":"CVE-2024-53859","to":"CVE-2025-48938","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/cli/go-gh/v2","fromFixed":"2.11.1","toFixed":"2.12.1","daysApart":184}]}},{"cve":"CVE-2025-48938","published":"2025-05-30","fixed":"2.12.1","kev":false}],"package":"Go:github.com/cli/go-gh/v2"}}