What’s Vulnerable › Vulnerabilities

CVE-2025-61732: Potential code smuggling via doc comments in cmd/cgo

Description

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

Affected products

How to fix

Upgrade to a fixed version: Go 1.24.13, 1.25.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-61732 or the next vulnerability affects your stack