
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-61732 is a code injection vulnerability in the Go programming language's cmd/cgo tool, caused by a discrepancy between how Go and C/C++ comments are parsed, enabling "code smuggling" into the resulting cgo binary. It affects all Go versions before 1.24.13 and Go 1.25.x versions before 1.25.7. The vulnerability was published on February 5, 2026, and patches were released the same day. It carries a CVSS v3.1 base score of 8.6 (High) (Go Vuln DB, IBM Advisory).
The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection). The vulnerability arises because Go's cmd/cgo tool parses comments differently than C/C++ compilers: an attacker can craft specially formatted comment blocks that are treated as inert by Go's parser but are interpreted as executable C/C++ code by the C compiler during the cgo build process. This parsing inconsistency allows malicious code to be "smuggled" into the compiled binary without being visible as active code in the Go source. Exploitation requires local access and user interaction — specifically, a victim must compile a malicious or attacker-influenced cgo project (Go Issue, Go CL, Go Vuln DB).
Successful exploitation results in high impact across confidentiality, integrity, and availability, with a changed scope indicating effects beyond the vulnerable component itself. An attacker who can influence cgo source code (e.g., via a malicious dependency or supply chain compromise) could inject arbitrary C code that executes when the binary is run, potentially enabling unauthorized data access, system compromise, or denial of service. The local attack vector limits remote exploitation, but the supply chain angle makes this particularly relevant for Go projects that use cgo and consume third-party packages (Go Vuln DB, IBM Advisory).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (Go Vuln DB). The EPSS score is approximately 0.013% (0.000130), reflecting a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. Detection signatures have been published by Qualys and Tenable/Nessus for scanner-based identification.
.go file that is syntactically valid and inert from Go's perspective, but is interpreted as executable C code by the C/C++ compiler during cgo processing. For example, exploit the difference in how block comment terminators or nested comments are handled between Go and C parsers.go build or go install on the affected project, cmd/cgo processes the source and passes the smuggled C code to the C compiler, which compiles it into the resulting binary..go files that import "C", particularly those containing C-like syntax within comment delimiters; cgo-generated intermediate files (e.g., _cgo_*.c) containing unexpected function definitions or system calls.go.sum or go.mod referencing unfamiliar module versions.Upgrade to Go 1.24.13 or later (for the 1.24.x branch) or Go 1.25.7 or later (for the 1.25.x branch), which contain the fix for this parsing discrepancy (Go CL, Go Vuln DB). Organizations using downstream distributions should apply vendor-specific patches: Red Hat has issued RHSA-2026:2706, RHSA-2026:2708, RHSA-2026:2709, and subsequent advisories; SUSE, openSUSE, AlmaLinux, Rocky Linux, Amazon Linux 2, and Mageia have also released updated packages. As an interim measure, audit all cgo projects for suspicious comment patterns and restrict the use of untrusted cgo dependencies. IBM Financial Transaction Manager users should refer to the IBM advisory for product-specific guidance (IBM Advisory).
The Go team announced the fix via the golang-announce mailing list and social media (Bluesky, Mastodon) upon releasing Go 1.25.7 and 1.24.13 (golang-announce). Security news outlets including GBHackers, IT Security News, CyberPress, and UnderCodeNews covered the release, highlighting the code smuggling angle as a notable supply chain risk. The Hacker Wire published a dedicated technical write-up on the cgo comment parsing discrepancy. Community discussion on Reddit's CVEWatch subreddit listed CVE-2025-61732 among the top trending CVEs in the days following disclosure. Istio also issued a security release (1.27.7) referencing this vulnerability, indicating broad ecosystem impact (Istio Release).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."