{"answers":{"affected":"2 open source packages ship an affected version, including golang and toolchain. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-4674 in the wild and no public exploit code.","fix":"Upgrade golang to a fixed version for your release line: 1.23.11 or 1.24.5.","what":"CVE-2025-4674 is a high-severity command injection vulnerability in Golang Go, published on 29 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-4674 and fix it if it is affected.\n\nWhat it is: CVE-2025-4674 is a high-severity command injection vulnerability in Golang Go, published on 29 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-4674 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang (Bitnami): affected all versions; fixed in 1.23.11, 1.24.5\n- toolchain (Go): affected all versions; fixed in 1.23.11, 1.24.5\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-4674/ (Markdown: https://insights.sbomify.com/CVE-2025-4674/index.md)","id":"CVE-2025-4674","markdown":"https://insights.sbomify.com/CVE-2025-4674/index.md","name":"CVE-2025-4674","record":{"aliases":["ALSA-2025:13935","ALSA-2025:13940","AZL-66098","AZL-66101","BELL-CVE-2025-4674","BIT-golang-2025-4674","CLEANSTART-2026-DA21677","CLEANSTART-2026-YD16450","CLSA-2025-1756931716","DEBIAN-CVE-2025-4674","ECHO-6fb1-590b-9dd9","GHSA-wprm-fgrx-xj42","GO-2025-3828","MGASA-2025-0205","MINI-2cxj-c57q-397w","MINI-2fvm-qmmp-j33m","MINI-2wjx-wh7p-3qvm","MINI-33vx-9rpj-w2g9","MINI-34p5-9r6x-cf85","MINI-3j9p-pphr-6wx7","MINI-3qcr-2h43-9hcr","MINI-3qh2-4hxg-xrmw","MINI-447w-72px-p6x4","MINI-4cr3-mg3q-3f27","MINI-4wpj-459m-3932","MINI-524x-c63r-963q","MINI-554q-3v7g-p326","MINI-5mh4-xrvj-6xgc","MINI-5r5f-6frq-66wx","MINI-5wqq-c366-f2r9","MINI-62hf-m4jq-rgvr","MINI-638m-6wmj-5r55","MINI-66wv-xxg9-x494","MINI-6qm9-pm7w-q29w","MINI-6x7h-wg96-3vmj","MINI-6xp3-m2pm-45g7","MINI-7m88-253j-rqh7","MINI-7mj6-7q5x-wgc4","MINI-8567-xqj9-75v7","MINI-8whv-xj6h-4824","MINI-922p-wpjx-87xp","MINI-93m5-xf6f-pjgp","MINI-9j7x-xxc7-84q5","MINI-c446-p3f7-qxh3","MINI-c5xg-qqqm-3wg9","MINI-c6xf-mr69-5h53","MINI-ch96-342v-8mv7","MINI-cqcc-c2xv-pqxq","MINI-cr5g-9977-8jwf","MINI-cv3m-27r6-9p7w","MINI-cv7c-75r7-m84r","MINI-f2c6-3h5c-f2f4","MINI-f657-r5jm-r3xr","MINI-f67c-x4qv-9c6v","MINI-fjh7-6782-prpw","MINI-fmq5-f632-fc4q","MINI-g3p3-mv49-8qf3","MINI-g5c2-rhjr-j5pc","MINI-g84h-8qc3-68pq","MINI-gpr6-8f34-f834","MINI-gvfx-43g3-r6qq","MINI-gx4f-mwj5-pp28","MINI-gxx6-wqr3-9hv4","MINI-h36c-j8gg-rxq7","MINI-h48x-f5xv-6pr5","MINI-h92p-436m-vc56","MINI-hf5g-j875-352f","MINI-hhwg-xhrq-rj38","MINI-hjc4-hx3c-cwp2","MINI-hr78-35cf-j7q5","MINI-j4h5-vjcp-x42p","MINI-jcg5-vhr7-m3hw","MINI-jjxp-vj3h-j446","MINI-jm69-fxqq-8xw7","MINI-jr6j-qm5w-p827","MINI-jx4m-xrq8-gcp7","MINI-jx89-hfhq-89fx","MINI-mj57-gj77-48m2","MINI-mp74-g5m5-r6fw","MINI-mw76-hrj8-mm9g","MINI-phfx-7vrv-7x9p","MINI-q655-3v84-m3q2","MINI-qjr7-qqhx-fpf4","MINI-qw6m-w5xx-64j9","MINI-r2jh-q7hp-93gp","MINI-r87v-g2h3-pg64","MINI-rhrq-g48f-h735","MINI-rm3p-vr56-qr4v","MINI-rpqw-hrmm-rcjv","MINI-rr9x-p839-hgwr","MINI-rw29-8xg2-3v5f","MINI-v6g8-7x6g-cjg4","MINI-v8xj-w2hg-cqxc","MINI-w67r-8pxq-wjv4","MINI-w6xc-7vh4-m2pr","MINI-w93x-254j-9gvv","MINI-wc86-fxrv-9hc8","MINI-wqq4-ppfr-c68c","MINI-ww6w-8rvh-pgv2","MINI-x22g-f835-h2fh","MINI-x64v-rrxq-pfj9","MINI-xvx2-7whc-vg2j","MINI-xw3w-9crp-gr2j","RHSA-2025:13936","RHSA-2025:13939","RHSA-2025:13940","RHSA-2025:14093","RLSA-2025:13935","RLSA-2025:13940","RLSA-2025:13941","ROOT-OS-DEBIAN-13-CVE-2025-4674","SUSE-SU-2025:02295-1","SUSE-SU-2025:02296-1","UBUNTU-CVE-2025-4674","openSUSE-SU-2025:15328-1","openSUSE-SU-2025:15329-1","openSUSE-SU-2025:15330-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go toolchain","requires_auth":"none","summary":"The Go command may execute unexpected commands when operating in untrusted VCS repositories with dangerous configuration, allowing code execution.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[{"product":"go","vendor":"golang"}],"cvss":{"score":8.6,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"description":"The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. Git), but contains metadata for another VCS (e.g. Mercurial). Modules which are retrieved using the go command line, i.e. via \"go get\", are not affected.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Bitnami","Go","Red Hat:enterprise_linux:8::appstream","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_tus:8.8::appstream","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP7","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"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":"Unexpected command execution in untrusted VCS repositories in cmd/go","id":"CVE-2025-4674","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"golang:go","products":["golang:go"],"type":"command_injection","year":"2025"},"n_packages":103,"n_references":4,"next":{"headline":"Improper implementation of Modbus protocol leading to DOS attack","id":"CVE-2025-4675"},"packages":[{"ecosystem":"Bitnami","fixed":["1.23.11","1.24.5"],"introduced":["0","1.24.0-0"],"last_affected":[],"package":"golang","purl":"pkg:bitnami/golang","source":"BIT-golang-2025-4674"},{"ecosystem":"Go","fixed":["1.23.11","1.24.5"],"introduced":["0","1.24.0-0"],"last_affected":[],"package":"toolchain","purl":"pkg:golang/toolchain","source":"GO-2025-3828"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.1-1.module_el8.10.0+3977+66935a26"],"introduced":["0"],"last_affected":[],"package":"delve","purl":"pkg:rpm/almalinux/delve","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"go-toolset","purl":"pkg:rpm/almalinux/go-toolset","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/almalinux/golang","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"golang-bin","purl":"pkg:rpm/almalinux/golang-bin","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"golang-docs","purl":"pkg:rpm/almalinux/golang-docs","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"golang-misc","purl":"pkg:rpm/almalinux/golang-misc","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"golang-src","purl":"pkg:rpm/almalinux/golang-src","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:8","fixed":["1.24.6-1.module_el8.10.0+4033+4bf8b620"],"introduced":["0"],"last_affected":[],"package":"golang-tests","purl":"pkg:rpm/almalinux/golang-tests","source":"ALSA-2025:13940"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"go-toolset","purl":"pkg:rpm/almalinux/go-toolset","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/almalinux/golang","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang-bin","purl":"pkg:rpm/almalinux/golang-bin","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang-docs","purl":"pkg:rpm/almalinux/golang-docs","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang-misc","purl":"pkg:rpm/almalinux/golang-misc","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang-race","purl":"pkg:rpm/almalinux/golang-race","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang-src","purl":"pkg:rpm/almalinux/golang-src","source":"ALSA-2025:13935"},{"ecosystem":"AlmaLinux:9","fixed":["1.24.6-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"golang-tests","purl":"pkg:rpm/almalinux/golang-tests","source":"ALSA-2025:13935"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.1-1.module+el8.10.0+22945+b2c96a17"],"introduced":["0"],"last_affected":[],"package":"delve","purl":"pkg:rpm/redhat/delve","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.1-1.module+el8.10.0+22945+b2c96a17"],"introduced":["0"],"last_affected":[],"package":"delve-debuginfo","purl":"pkg:rpm/redhat/delve-debuginfo","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.1-1.module+el8.10.0+22945+b2c96a17"],"introduced":["0"],"last_affected":[],"package":"delve-debugsource","purl":"pkg:rpm/redhat/delve-debugsource","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"go-toolset","purl":"pkg:rpm/redhat/go-toolset","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/redhat/golang","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"golang-bin","purl":"pkg:rpm/redhat/golang-bin","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"golang-docs","purl":"pkg:rpm/redhat/golang-docs","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"golang-misc","purl":"pkg:rpm/redhat/golang-misc","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"golang-src","purl":"pkg:rpm/redhat/golang-src","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.24.6-1.module+el8.10.0+23407+428597c7"],"introduced":["0"],"last_affected":[],"package":"golang-tests","purl":"pkg:rpm/redhat/golang-tests","source":"RHSA-2025:13940"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.9.1-1.module+el8.8.0+16778+5fbb74f5"],"introduced":["0"],"last_affected":[],"package":"delve","purl":"pkg:rpm/redhat/delve","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.9.1-1.module+el8.8.0+16778+5fbb74f5"],"introduced":["0"],"last_affected":[],"package":"delve-debuginfo","purl":"pkg:rpm/redhat/delve-debuginfo","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.9.1-1.module+el8.8.0+16778+5fbb74f5"],"introduced":["0"],"last_affected":[],"package":"delve-debugsource","purl":"pkg:rpm/redhat/delve-debugsource","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-3.module+el8.8.0+22903+37387f31"],"introduced":["0"],"last_affected":[],"package":"go-toolset","purl":"pkg:rpm/redhat/go-toolset","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/redhat/golang","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang-bin","purl":"pkg:rpm/redhat/golang-bin","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang-docs","purl":"pkg:rpm/redhat/golang-docs","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang-misc","purl":"pkg:rpm/redhat/golang-misc","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang-race","purl":"pkg:rpm/redhat/golang-race","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang-src","purl":"pkg:rpm/redhat/golang-src","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:8.8::appstream","fixed":["0:1.19.13-16.module+el8.8.0+23410+958e78d9"],"introduced":["0"],"last_affected":[],"package":"golang-tests","purl":"pkg:rpm/redhat/golang-tests","source":"RHSA-2025:14093"},{"ecosystem":"Red Hat:rhel_e4s:9.2::appstream","fixed":["0:1.19.13-18.el9_2"],"introduced":["0"],"last_affected":[],"package":"golang","purl":"pkg:rpm/redhat/golang","source":"RHSA-2025:13939"}],"prev":{"headline":"Sensitive headers not cleared on cross-origin redirect in net/http","id":"CVE-2025-4673"},"products":["cmd/go"],"published":"2025-07-29","related":[{"cvss_score":8.1,"headline":"Microsoft Windows CryptoAPI Spoofing","id":"CVE-2020-0601","kev_date_added":"2021-11-03","published":"2020-01-14"},{"cvss_score":9.8,"headline":"Missing bound checks can lead to memory corruption in safe Go in cmd/compile","id":"CVE-2026-27143","kev_date_added":null,"published":"2026-04-08"},{"cvss_score":9.8,"headline":"Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip","id":"CVE-2024-24790","kev_date_added":null,"published":"2024-06-05"},{"cvss_score":9.8,"headline":"Arbitrary code execution via go.mod toolchain directive in cmd/go","id":"CVE-2023-39320","kev_date_added":null,"published":"2023-09-08"},{"cvss_score":9.8,"headline":"Improper handling of JavaScript whitespace in html/template","id":"CVE-2023-24540","kev_date_added":null,"published":"2023-05-11"},{"cvss_score":9.8,"headline":"Backticks not treated as string delimiters in html/template","id":"CVE-2023-24538","kev_date_added":null,"published":"2023-04-06"},{"cvss_score":9.8,"headline":"Other in go/golang","id":"CVE-2012-2666","kev_date_added":null,"published":"2021-07-09"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"total"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["Go toolchain"]},"summary":"The Go command may execute unexpected commands when operating in untrusted VCS repositories with dangerous configuration, allowing code execution.","url":"https://insights.sbomify.com/CVE-2025-4674/"}