CVE-2025-61732

Potential code smuggling via doc comments in cmd/cgo

State
Published
Severity
8.6 High
Published
Feb 5, 2026
Updated
Sep 10, 2026
Reserved
Sep 30, 2025

Read the record on cve.org

Description

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

Scores

CVSSScoreVectorSource
3.18.6 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HCISA-ADP
3.17.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:Nredhat-SADP

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
cmd/cgoGo toolchain
  • before 1.24.13Affected
  • 1.25.0-0 to before 1.25.7Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.