CVE-2025-61732: A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
High CVSS 8.6
- CVE id
- CVE-2025-61732
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Go Runtimes and servers |
< 1.24.13 >= 1.25.0, < 1.25.7 |
1.24.13, 1.25.7 |
How to fix it
Upgrade Go to the fixed release of the line you run: 1.24.13, 1.25.7.
go version
- Build with the patched Go release (set "toolchain" in go.mod, or the golang image tag) and redeploy: Go programs include the standard library, so they must be rebuilt.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
A discrepancy between how Go and C/C++ comments were parsed allowed for code smuggling into the resulting cgo binary.
References
- CVE-2025-61732 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-61732
- Web: https://go.dev/cl/734220
- Web: https://go.dev/issue/76697
- Web: https://groups.google.com/g/golang-announce/c/K09ubi9FQFk
- Web: https://pkg.go.dev/vuln/GO-2026-4433
- Web: https://access.redhat.com/errata/RHSA-2026:10104
- Web: https://access.redhat.com/errata/RHSA-2026:12282
- Web: https://access.redhat.com/errata/RHSA-2026:14100
- Web: https://access.redhat.com/errata/RHSA-2026:14774
- Web: https://access.redhat.com/errata/RHSA-2026:15091
- Web: https://access.redhat.com/errata/RHSA-2026:17598
- Web: https://access.redhat.com/errata/RHSA-2026:21691
- Web: https://access.redhat.com/errata/RHSA-2026:2706
- Web: https://access.redhat.com/errata/RHSA-2026:2708
- Web: https://access.redhat.com/errata/RHSA-2026:2709
- Web: https://access.redhat.com/errata/RHSA-2026:2844
- Web: https://access.redhat.com/errata/RHSA-2026:3192
- Web: https://access.redhat.com/errata/RHSA-2026:3193
- Web: https://access.redhat.com/errata/RHSA-2026:3468
- Web: https://access.redhat.com/errata/RHSA-2026:3469
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.