Go 1.25.7 and Go 1.24.13 Released With Patches for Multiple Security Vulnerabilities
The Go team has announced the release of versions 1.25.7 and 1.24.13. These updates address security vulnerabilities affecting the cmd/cgo command and the crypto/tls library. Users are advised to update to prevent potential code smuggling and…
The Go team has announced the release of versions 1.25.7 and 1.24.13. These updates address security vulnerabilities affecting the cmd/cgo command and the crypto/tls library. Users are advised to update to prevent potential code smuggling and authentication bypass scenarios.
The vulnerability identified as CVE-2025-61732 affects the cmd/cgo tool, which facilitates the creation of Go packages that call C code. The issue arises from differing comment parsing methods between the Go compiler and C/C++ compilers. This discrepancy could allow attackers to smuggle code into cgo binaries through specially crafted comment structures. The update ensures the cgo compiler no longer parses user-provided documentation comments in cgo Abstract Syntax Trees (ASTs). This issue was reported by RyotaK of GMO Flatt Security Inc.
The second vulnerability, CVE-2025-68121, affects the crypto/tls package, specifically in the Config.GetConfigForClient function. By default, this function uses the session ticket keys from the original configuration unless overridden. If the returned configuration changes authentication parameters such as ClientCAs , a connection established with the parent configuration could bypass the new authentication requirements. The patch ensures crypto/tls verifies the root of the previously verified chain remains in ClientCAs or RootCAs when resuming a connection, applicable when ClientAuth is set to VerifyClientCertIfGiven or RequireAndVerifyClientCert . This issue was identified by Coia Prant.
These updates address security vulnerabilities affecting the cmd/cgo command and the crypto/tls library.
CVE-2025-61732 : cmd/cgo - Code Injection due to comment parsing discrepancies between Go and C/C++. CVE-2025-68121 : crypto/tls - Authentication Bypass due to session resumption bypassing updated authentication parameters.
Developers are encouraged to update their Go environments promptly. Binary and source distributions are available on the official Go download page .
Based on reporting by GBHackers.
