9.1Critical

CVE-2025-68121Unexpected session resumption in crypto/tls

Go standard library crypto/tls Published: (9 months ago)

Description

During session resumption in crypto/tls, if the underlying Config has its ClientCAs or RootCAs fields mutated between the initial handshake and the resumed handshake, the resumed handshake may succeed when it should have failed. This may happen when a user calls Config.Clone and mutates the returned Config, or uses Config.GetConfigForClient. This can cause a client to resume a session with a server that it would not have resumed with during the initial handshake, or cause a server to resume a session with a client that it would not have resumed with during the initial handshake.

Weakness (CWE): CWE-295

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.13, 1.25.0-0 – < 1.25.7, 1.26.0-rc.1 – < 1.26.0-rc.3
golang go < 1.24.13

References and patches

CPE matches (NVD) (4)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.24.13
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.25.0 < 1.25.7
  • cpe:2.3:a:golang:go:1.26.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:golang:go:1.26.0:rc2:*:*:*:*:*:*