ADVISORIES

Go Vulnerability Database

GO-2026-4433

Potential code smuggling via doc comments in cmd/cgo

Details

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

Affected packages

EcosystemPackageAffected versions
Gotoolchain
All versions before 1.24.13 (fixed in 1.24.13)
From 1.25.0-0 before 1.25.7 (fixed in 1.25.7)

References