{"id":"GO-2025-4008","summary":"ALPN negotiation error contains attacker controlled information in crypto/tls","details":"When Conn.Handshake fails during ALPN negotiation the error contains attacker controlled information (the ALPN protocols sent by the client) which is not escaped.","aliases":["BIT-golang-2025-58189","CVE-2025-58189"],"modified":"2026-05-15T10:59:05.373754697Z","published":"2025-10-29T21:49:53Z","related":["CGA-cgc5-pp5m-vvfr","RHSA-2026:7291","RHSA-2026:7385"],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2025-4008"},"references":[{"type":"FIX","url":"https://go.dev/cl/707776"},{"type":"REPORT","url":"https://go.dev/issue/75652"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI"}],"affected":[{"package":{"name":"stdlib","ecosystem":"Go","purl":"pkg:golang/stdlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.24.8"},{"introduced":"1.25.0"},{"fixed":"1.25.2"}]}],"ecosystem_specific":{"imports":[{"path":"crypto/tls","symbols":["Conn.Handshake","Conn.HandshakeContext","Conn.Read","Conn.Write","Dial","DialWithDialer","Dialer.Dial","Dialer.DialContext","QUICConn.Start","negotiateALPN"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2025-4008.json"}}],"schema_version":"1.7.5","credits":[{"name":"National Cyber Security Centre Finland"}]}