{"id":"CVE-2025-58189","revision":"7240b676e0a947269289dff2d72a37ae","records":[{"revision":"7240b676e0a947269289dff2d72a37ae","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-58189","aliases":[],"title":"ALPN negotiation error contains attacker controlled information in crypto/tls","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.","state":0,"publishedAt":"2025-10-29T22:10:12.947+00:00","modifiedAt":"2025-11-04T21:13:39.428+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"crypto/tls","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Go standard library\",\n                    \"product\": \"crypto/tls\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"crypto/tls\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.24.8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.25.0\",\n                            \"lessThan\": \"1.25.2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"negotiateALPN\"\n                        },\n                        {\n                            \"name\": \"Conn.Handshake\"\n                        },\n                        {\n                            \"name\": \"Conn.HandshakeContext\"\n                        },\n                        {\n                            \"name\": \"Conn.Read\"\n                        },\n                        {\n                            \"name\": \"Conn.Write\"\n                        },\n                        {\n                            \"name\": \"Dial\"\n                        },\n                        {\n                            \"name\": \"DialWithDialer\"\n                        },\n                        {\n                            \"name\": \"Dialer.Dial\"\n                        },\n                        {\n                            \"name\": \"Dialer.DialContext\"\n                        },\n                        {\n                            \"name\": \"QUICConn.Start\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://go.dev/cl/707776","https://go.dev/issue/75652","https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI","https://pkg.go.dev/vuln/GO-2025-4008"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-58189","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-58189","identifiers":["CVE-2025-58189"]},"retained":false,"historicalAffected":[]}],"coverage":[]}