5.3Medium

CVE-2025-58189ALPN negotiation error contains attacker controlled information in crypto/tls

Go standard library crypto/tls Published: (1 year ago)

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.

Weakness (CWE): CWE-117CWE-532

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library crypto/tls < 1.24.8, 1.25.0 – < 1.25.2
golang go < 1.24.8

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.24.8
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.25.0 < 1.25.2