ADVISORIES

Red Hat VEX

RHVEX-CVE-2025-61732

cmd/cgo: Go cgo: Code smuggling due to comment parsing discrepancy

Important No fix available CVE-2025-61732

Details

A flaw was found in Go's 'cgo tool'. This vulnerability arises from a discrepancy in how Go and C/C++ comments are parsed, which allows for malicious code to be hidden within comments and then "smuggled" into the compiled cgo binary. An attacker could exploit this to embed and execute arbitrary code, potentially leading to significant system compromise.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:9go-toolset
All versions, no fix yet

References