ADVISORIES

Go Vulnerability Database

GO-2023-1570

Panic on large handshake records in crypto/tls

Details

Large handshake records may cause panics in crypto/tls.

Both clients and servers may send large TLS handshake records which cause servers and clients, respectively, to panic when attempting to construct responses.

This affects all TLS 1.3 clients, TLS 1.2 clients which explicitly enable session resumption (by setting Config.ClientSessionCache to a non-nil value), and TLS 1.3 servers which request client certificates (by setting Config.ClientAuth >= RequestClientCert).

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.19.6 (fixed in 1.19.6)
From 1.20.0-0 before 1.20.1 (fixed in 1.20.1)

References