{"id":"CVE-2025-48938","state":"PUBLISHED","title":"Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server","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.","publishedAt":"2025-05-30T18:45:59.753Z","updatedAt":"2025-05-30T20:38:51.984Z","severity":{"score":2.6,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["cli go-gh"],"affected":[{"vendor":"cli","product":"go-gh","versions":[{"version":"< 2.12.1","status":"affected"}]}],"references":["https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563","https://github.com/cli/go-gh/commit/a08820a13f257d6c5b4cb86d37db559ec6d14577","https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go"],"weaknesses":["CWE-501"],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/48xxx/CVE-2025-48938.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-48938","state":"PUBLISHED","datePublished":"2025-05-30T18:45:59.753Z","dateUpdated":"2025-05-30T20:38:51.984Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-05-28T18:49:07.579Z"},"containers":{"cna":{"title":"Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"cli","product":"go-gh","versions":[{"version":"< 2.12.1","status":"affected"}]}],"references":[{"url":"https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563","name":"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","name":"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","name":"https://github.com/cli/go-gh/blob/61bf393cf4aeea6d00a6251390f5f67f5b67e727/pkg/browser/browser.go","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","baseScore":2.6,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-501","lang":"en","description":"CWE-501: Trust Boundary Violation","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-05-30T18:45:59.753Z"},"source":{"advisory":"GHSA-g9f5-x53j-h563","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-30T20:38:39.328661Z","id":"CVE-2025-48938","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-30T20:38:51.984Z"}}]}}}