{"answers":{"affected":"2 open source packages ship an affected version, including golang and toolchain.","exploited":"There is no known exploitation of CVE-2025-22867 in the wild and no public exploit code.","fix":"Upgrade golang to 1.24.0-rc.3 or later.","what":"CVE-2025-22867 is a high-severity code injection vulnerability in cmd/go, published on 6 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-22867 and fix it if it is affected.\n\nWhat it is: CVE-2025-22867 is a high-severity code injection vulnerability in cmd/go, published on 6 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-22867 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang (Bitnami): affected from 1.24.0-rc.2; fixed in 1.24.0-rc.3\n- toolchain (Go): affected from 1.24.0-rc.2; fixed in 1.24.0-rc.3\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-22867/ (Markdown: https://insights.sbomify.com/CVE-2025-22867/index.md)","id":"CVE-2025-22867","markdown":"https://insights.sbomify.com/CVE-2025-22867/index.md","name":"CVE-2025-22867","record":{"aliases":["BIT-golang-2025-22867","ECHO-d085-1c12-aa45","GHSA-664g-9vm2-r26f","GO-2025-3428"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go toolchain","requires_auth":"none","summary":"Attackers can execute arbitrary code during Go module builds on macOS if CGO directives use specific linker path values.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[],"description":"On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the @executable_path, @loader_path, or @rpath special values in a \"#cgo LDFLAGS\" directive. This issue only affected go1.24rc2.","ecosystems":["Bitnami","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":"Arbitrary code execution during build on darwin in cmd/go","id":"CVE-2025-22867","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"Unexpected memory consumption during token parsing in golang.org/x/oauth2","id":"CVE-2025-22868"},"packages":[{"ecosystem":"Bitnami","fixed":["1.24.0-rc.3"],"introduced":["1.24.0-rc.2"],"last_affected":[],"package":"golang","purl":"pkg:bitnami/golang","source":"BIT-golang-2025-22867"},{"ecosystem":"Go","fixed":["1.24.0-rc.3"],"introduced":["1.24.0-rc.2"],"last_affected":[],"package":"toolchain","purl":"pkg:golang/toolchain","source":"GO-2025-3428"}],"prev":{"headline":"Timing sidechannel for P-256 on ppc64le in crypto/internal/nistec","id":"CVE-2025-22866"},"products":["cmd/go"],"published":"2025-02-06","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-06","vendors":["Go toolchain"]},"summary":"Attackers can execute arbitrary code during Go module builds on macOS if CGO directives use specific linker path values.","url":"https://insights.sbomify.com/CVE-2025-22867/"}