CVE-2025-61732CWE-94code-injection

CVE-2025-61732

High · published February 5, 2026

CVSS v3.1
8.6
EPSS
1%
Percentile
44.6
In the wild
Unconfirmed
What it is

⚡ A mismatch in comment parsing between Go and C/C++ is your ticket to code smuggling! This vulnerability is like a hidden ingredient slipping into your recipe without your knowledge! Think of it as a chef who doesn’t check the order details before cooking—if they miss a substitution, an undesired ingredient ends up in the dish. This parsing quirk allows malicious code to be sneaked into the cgo binary, potentially turning your application into an unwitting accomplice. An attacker could exploit this vulnerability to inject harmful code into the cgo binary, leading to unexpected behavior, data leaks, or even system compromise. The consequences could be absolutely devastating, especially if sensitive data or system integrity is at stake!

Put simply

Think of it as a chef who doesn’t check the order details before cooking—if they miss a substitution, an undesired ingredient ends up in the dish. This parsing quirk allows malicious code to be sneaked into the cgo binary, potentially turning your application into an unwitting accomplice. This vulnerability arises from the way the Go programming language misinterprets comments when interacting with C/C++ code, resulting in the potential inclusion of malicious code in the compiled binary. This code smuggling can happen without the developer's knowledge, creating a significant security risk.

What to do

An attacker could exploit this vulnerability to inject harmful code into the cgo binary, leading to unexpected behavior, data leaks, or even system compromise. The consequences could be absolutely devastating, especially if sensitive data or system integrity is at stake! To mitigate this issue, ensure that your Go version is up to date with the latest patches that address CVE-2025-61732. Additionally, review your cgo integrations and conduct a thorough audit of any code being referenced or compiled within your projects. You've got this! With these steps, you're on your way to securing your application against sneaky vulnerabilities like this! 🛡️

The record
Technical detail
CVSS v3.1
8.6 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00539 · 44.6th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-02-05T09:15Z
Affected products (2)
ProductVersionsFixed in
golang/go< 1.24.131.24.13
golang/go≥ 1.25.0, < 1.25.71.25.7
References (38)
https://go.dev/cl/734220 · [email protected]https://go.dev/issue/76697 · [email protected]https://groups.google.com/g/golang-announce/c/K09ubi9FQFk · [email protected]https://pkg.go.dev/vuln/GO-2026-4433 · [email protected]https://access.redhat.com/errata/RHSA-2026:10104 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:12282 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:14100 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:14774 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:15091 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:17598 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:21691 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:2706 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:2708 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:2709 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:2844 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3192 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3193 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3468 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3469 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3470 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3471 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3472 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3473 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3489 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3556 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3559 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:3855 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:4434 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:5878 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:5948 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:5950 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:5952 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:7291 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:7385 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/errata/RHSA-2026:8448 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://access.redhat.com/security/cve/CVE-2025-61732 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://bugzilla.redhat.com/show_bug.cgi?id=2437016 · 0b0ca135-0b70-47e7-9f44-1890c2a1c46chttps://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61732.json · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
EPSS history
Timeline
  • 05 FEB 03:42Z
    Potential code smuggling via doc comments in cmd/cgo
    cvelistv5