GO-2025-4008

Source
https://pkg.go.dev/vuln/GO-2025-4008
Import Source
https://vuln.go.dev/ID/GO-2025-4008.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2025-4008
Aliases
Published
2025-10-29T21:49:53Z
Modified
2025-11-06T13:59:30.251421Z
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.

Database specific
{
    "url": "https://pkg.go.dev/vuln/GO-2025-4008",
    "review_status": "REVIEWED"
}
References
Credits
    • National Cyber Security Centre Finland

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
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"
            ]
        }
    ]
}