TLS client denial of service in Go crypto/tls
CVE-2021-34558 is a certificate public-key type validation flaw in Go's standard-library crypto/tls package, affecting Go through 1.16.5. During RSA-based TLS key exchange, the implementation fails to verify that an X.509 certificate contains the expected public-key type. A malicious TLS server or an attacker in a privileged network position can present an incompatible certificate and trigger a TLS client panic. Exploitation can occur without possession of the server certificate's private key when a trusted ECDSA or Ed25519 server certificate exists or can be issued, or when certificate verification is disabled. TLS 1.3-only clients and clients with all TLS_RSA cipher suites disabled are unaffected.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes a vulnerable TLS client to panic, potentially crashing the client application and denying service. The maximum stated impact is a client crash and resulting denial of service.
If you can’t patch tonight, do this now.
Restrict clients to TLS 1.3, or disable all TLS_RSA cipher suites for TLS 1.0 through 1.2; clients with either configuration are unaffected. Red Hat nevertheless stated that no mitigation meeting its Product Security criteria was available.
Patch, then assume compromise.
Apply a vendor-supported Go update containing the fix and update affected Go-based applications, packages, and container images. For RHEL 8 Go Toolset, RHSA-2021:3076 supplies the fix in Go 1.15.14. For Rocky Linux 8.6 under CIQ LTS, update golang according to ciqsa-2026_1599 and go-toolset according to ciqsa-2026_1600. Use the applicable product advisory for bundled Go components.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.