GO-2025-4008

ALPN negotiation error contains attacker controlled information in crypto/tls

At a glance

Published
Updated
CVE
CVE-2025-58189
Aliases
BIT-golang-2025-58189

Description

When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.24.8, introduced 1.25.0, fixed 1.25.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database