cve.bz

CVE-2025-61732 golang go: Code Injection

8.6 highEPSS 0.5%Fix available

High (8.6) in golang go. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in toolchain 1.24.13, 1.25.7.

On this page
A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-02-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-61732 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-61732?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-61732?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-61732 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go toolchain cmd/cgobefore 1.24.13
Go toolchain cmd/cgofrom 1.25.0-0 before 1.25.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-4433Gotoolchain<1.24.13
>=1.25.0-0 <1.25.7
1.24.13, 1.25.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2025-61732
Debian13golang-1.24no fix listedDEBIAN-CVE-2025-61732
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2025-61732
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2025-61732
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2025-61732
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.20 and 2 moreno fix listedUBUNTU-CVE-2025-61732
Ubuntu22.04:LTSgolang-1.17, golang-1.20, golang-1.21 and 4 moreno fix listedUBUNTU-CVE-2025-61732
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23 and 1 moreno fix listedUBUNTU-CVE-2025-61732
Ubuntu25.10golang-1.23, golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2025-61732
Ubuntu26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-61732
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2025-61732
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2025-61732
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2025-61732
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.25.2-1.module+el8.10.0+23746+9db33b5eRHSA-2026:2708
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.25.7-1.module+el8.10.0+23993+83a15e10RHSA-2026:2708
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.25.7-1.el9_7RHSA-2026:2709
Red Hatenterprise_linux:10.1golang, go-toolset, golang-bin and 5 more0:1.25.7-1.el10_1RHSA-2026:2706
Red Hatenterprise_linux_eus:10.0golang, go-toolset, golang-bin and 5 more0:1.25.7-1.el10_0RHSA-2026:3192
Red Hathummingbird:1golang1.25, golang1.25-bin, golang1.25-src and 4 more0:1.25.9-1.hum1RHSA-2026:7385
Red Hathummingbird:1golang1.26, golang1.26-bin, golang1.26-src and 4 more0:1.26.2-1.hum1RHSA-2026:7291
Red Hatrhel_aus:8.2::appstreamdelve, delve-debuginfo, delve-debugsource0:1.3.2-3.module+el8.2.0+5581+896cb53eRHSA-2026:3468
Red Hatrhel_aus:8.2::appstreamgo-toolset0:1.13.15-1.module+el8.2.0+7662+fa98b974RHSA-2026:3468
Red Hatrhel_aus:8.2::appstreamgolang, golang-bin, golang-src and 4 more0:1.13.15-14.module+el8.2.0+24036+e0ad874fRHSA-2026:3468
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamdelve, delve-debuginfo, delve-debugsource0:1.5.0-2.module+el8.4.0+8864+58b0fcdbRHSA-2026:3470
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamgo-toolset0:1.15.14-3.module+el8.4.0+22765+91da4d3fRHSA-2026:3470
11 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.241.24.13-150000.1.56.1SUSE-SU-2026:0426-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.251.25.7-150000.1.29.1SUSE-SU-2026:0427-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.24-openssl1.24.13-150000.1.23.1SUSE-SU-2026:0687-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.25-openssl1.25.7-150000.1.15.1SUSE-SU-2026:0790-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.25-openssl1.25.8-150000.1.18.1SUSE-SU-2026:0947-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.24-openssl1.24.13-150600.13.18.1SUSE-SU-2026:0789-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.7-150600.13.12.1SUSE-SU-2026:0760-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.8-150600.13.15.1SUSE-SU-2026:0977-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.241.24.13-160000.1.1SUSE-SU-2026:20429-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.24-openssl1.24.13-160000.1.1SUSE-SU-2026:20629-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.251.25.7-160000.1.1SUSE-SU-2026:20428-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.25-openssl1.25.12-160000.1.1SUSE-SU-2026:22638-1
openSUSELeap 15.6go1.241.24.13-150000.1.56.1SUSE-SU-2026:0426-1
openSUSELeap 15.6go1.24-openssl1.24.13-150600.13.18.1SUSE-SU-2026:0789-1
openSUSELeap 15.6go1.251.25.7-150000.1.29.1SUSE-SU-2026:0427-1
openSUSELeap 15.6go1.25-openssl1.25.7-150600.13.12.1SUSE-SU-2026:0760-1
openSUSELeap 15.6go1.25-openssl1.25.8-150600.13.15.1SUSE-SU-2026:0977-1
openSUSELeap 15.6govulncheck-vulndb0.0.20260205T172317-150000.1.146.1SUSE-SU-2026:0403-1
openSUSELeap 16.0go1.241.24.13-160000.1.1openSUSE-SU-2026:20220-1
openSUSELeap 16.0go1.24-openssl1.24.13-160000.1.1openSUSE-SU-2026:20308-1
openSUSELeap 16.0go1.251.25.7-160000.1.1openSUSE-SU-2026:20214-1
openSUSELeap 16.0go1.25-openssl1.25.12-160000.1.1openSUSE-SU-2026:21319-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgo1.241.24.13-1.1openSUSE-SU-2026:10163-1
2 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8delve1.25.2-1.module_el8.10.0+4074+24330916ALSA-2026:2708
AlmaLinux8golang, go-toolset, golang-bin and 5 more1.25.7-1.module_el8.10.0+4117+b694c6c9ALSA-2026:2708
AlmaLinux9golang, go-toolset, golang-bin and 5 more1.25.7-1.el9_7ALSA-2026:2709
AlmaLinux10golang-src, golang-docs, golang-misc and 1 more1.25.7-1.el10_1.alma.1ALSA-2026:2706
Rocky Linux8delve0:1.25.2-1.module+el8.10.0+40035+ee0a7047RLSA-2026:2708
Rocky Linux8golang0:1.25.7-1.module+el8.10.0+40081+47cbcb72RLSA-2026:2708
Rocky Linux9golang0:1.25.7-1.el9_7RLSA-2026:2709
Rocky Linux10golang0:1.25.7-1.el10_1RLSA-2026:2706
Alpinev3.23, v3.24etcd3.6.8-r0ALPINE-CVE-2025-61732
Alpinev3.23, v3.24go1.25.7-r0ALPINE-CVE-2025-61732
Azure Linux2msft-golangno fix listedAZL-76743
Azure Linux3golangno fix listedAZL-78937 AZL-98736
Azure Linux3golang1.25.10-1AZL-76688
Alpaquita23, 25go1.24.13-r0BELL-CVE-2025-61732
Alpaquita25, streametcd3.6.11-r1BELL-CVE-2025-61732
Alpaquitastreamgo1.25.7-r0BELL-CVE-2025-61732
BellSoft Hardened Containers23, 25go1.24.13-r0BELL-CVE-2025-61732
BellSoft Hardened Containersstreamgo1.25.7-r0BELL-CVE-2025-61732

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important vulnerability in the `cmd/cgo` component of the Go toolchain. A parsing discrepancy between Go and C/C++ comments could allow for code smuggling into the resulting `cgo` binary. This primarily affects systems where untrusted Go modules utilizing `cgo` are built, impacting Red Hat Enterprise Linux and OpenShift Container Platform.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10golang-0:1.25.7-1.el10_1Fixed 2026-02-16RHSA-2026:2706
Red Hat Enterprise Linux 10.0 Extended Update Supportgolang-0:1.25.7-1.el10_0Fixed 2026-02-24RHSA-2026:3192
Red Hat Enterprise Linux 8go-toolset:rhel8-8100020260212045823.a3795deeFixed 2026-02-16RHSA-2026:2708
Red Hat Enterprise Linux 8.2 Advanced Update Supportgo-toolset:rhel8-8020020260227115231.02f7cb7aFixed 2026-03-02RHSA-2026:3468
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgo-toolset:rhel8-8040020260227112052.5081a262Fixed 2026-03-02RHSA-2026:3470
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Ongo-toolset:rhel8-8040020260227112052.5081a262Fixed 2026-03-02RHSA-2026:3470
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgo-toolset:rhel8-8060020260227122329.97d7f71fFixed 2026-03-02RHSA-2026:3489
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicego-toolset:rhel8-8060020260227122329.97d7f71fFixed 2026-03-02RHSA-2026:3489
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsgo-toolset:rhel8-8060020260227122329.97d7f71fFixed 2026-03-02RHSA-2026:3489
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicego-toolset:rhel8-8080020260227110256.6b4b45d8Fixed 2026-03-02RHSA-2026:3471
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Affected
Migration Toolkit for Applications 8mta/mta-go-external-provider-rhel9Affected
OpenShift Service Mesh 2openshift-golang-builder-containerAffected
OpenShift Service Mesh 3openshift-golang-builder-containerAffected
Red Hat Enterprise Linux 10rhel10/go-toolsetAffected
Red Hat Enterprise Linux 8rhel8/go-toolsetAffected
Red Hat Enterprise Linux 9go-toolsetAffected
Red Hat Enterprise Linux 9rhel9/go-toolsetAffected
Red Hat OpenShift Container Platform 4openshift4/ose-operator-sdk-rhel9Affected
Red Hat OpenShift Virtualization 4openshift-golang-builder-containerAffected
490 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-61732.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON