{"schema_version":"1.7.3","id":"GO-2025-4008","published":"2025-10-29T21:49:53Z","modified":"2026-05-15T10:59:23.580906847Z","aliases":["BIT-golang-2025-58189","CVE-2025-58189"],"related":["CGA-cgc5-pp5m-vvfr","RHSA-2026:7291","RHSA-2026:7385"],"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.","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"}}],"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"}],"database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2025-4008"},"credits":[{"name":"National Cyber Security Centre Finland"}]}