Go cgo Comment Parsing Discrepancy Enables Code Smuggling
CVE-2025-61732 Published on February 5, 2026
Potential code smuggling via doc comments in cmd/cgo
A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
Vulnerability Analysis
CVE-2025-61732 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Weakness Type
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2025-61732 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2025-61732
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-61732 are published in these products: