{"answers":{"affected":"3 open source packages ship an affected version, including github.com/cli/go-gh/v2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-48938 in the wild and no public exploit code.","fix":"Upgrade github.com/cli/go-gh/v2 to 2.12.1 or later.","what":"CVE-2025-48938 is a low-severity command injection vulnerability in cli go-gh, published on 30 May 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-48938 and fix it if it is affected.\n\nWhat it is: CVE-2025-48938 is a low-severity command injection vulnerability in cli go-gh, published on 30 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-48938 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cli/go-gh/v2 (Go): affected all versions; fixed in 2.12.1\n- github.com/cli/go-gh/v2 (Go): affected all versions; fixed in 2.12.1\n- github.com/cli/go-gh/v2 (Go): affected all versions; fixed in 2.12.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-48938/ (Markdown: https://insights.sbomify.com/CVE-2025-48938/index.md)","id":"CVE-2025-48938","markdown":"https://insights.sbomify.com/CVE-2025-48938/index.md","name":"CVE-2025-48938","record":{"aliases":["AZL-62282","DEBIAN-CVE-2025-48938","GHSA-g9f5-x53j-h563","GO-2025-3732","UBUNTU-CVE-2025-48938"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go CLI library","requires_auth":"low_privilege","summary":"A compromised GitHub Enterprise Server can execute arbitrary commands on a user's machine via the go-gh library by manipulating URLs.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-gh","vendor":"cli"}],"cvss":{"score":2.6,"severity":"low","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-501","name":"Trust Boundary Violation"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Prevent GitHub CLI and extensions from executing arbitrary commands from compromised GitHub Enterprise Server","id":"CVE-2025-48938","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"tarteaucitron.js vulnerable to DOM Clobbering via document.currentScript","id":"CVE-2025-48939"},"packages":[{"ecosystem":"Go","fixed":["2.12.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/go-gh/v2","purl":null,"source":"GHSA-g9f5-x53j-h563"},{"ecosystem":"Go","fixed":["2.12.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/go-gh/v2","purl":"pkg:golang/github.com/cli/go-gh/v2","source":"GHSA-g9f5-x53j-h563"},{"ecosystem":"Go","fixed":["2.12.1"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/go-gh/v2","purl":"pkg:golang/github.com/cli/go-gh/v2","source":"GO-2025-3732"}],"prev":{"headline":"matrix-sdk-crypto vulnerable to sender of encrypted events being spoofed by homeserver administrator","id":"CVE-2025-48937"},"products":["go-gh"],"published":"2025-05-30","related":[{"cvss_score":6.5,"headline":"go-gh `auth.TokenForHost` violates GitHub host security boundary within a codespace","id":"CVE-2024-53859","kev_date_added":null,"published":"2024-11-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-30","vendors":["cli"]},"summary":"A compromised GitHub Enterprise Server can execute arbitrary commands on a user's machine via the go-gh library by manipulating URLs.","url":"https://insights.sbomify.com/CVE-2025-48938/"}