CVE-2021-34558: Go crypto/tls Client Denial of Service via Certificate Public-Key Type Confusion
- Vendors
- NetAppFedora ProjectGolangOracle Corporation
CVE-2021-34558 is a public-key type validation vulnerability in Go's crypto/tls package affecting Go through version 1.16.5. During RSA-based TLS key exchange, the client does not properly verify that the public key in the server's X.509 certificate has the expected type. A malicious TLS server can present a certificate containing an incompatible public-key type, causing the client to panic and potentially terminating the application.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can disrupt an affected TLS client through a panic. If the panic is not recovered, the hosting process terminates, potentially interrupting services that perform outbound TLS connections. No confidentiality or integrity impact is established.
Mitigation
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.
Remediation
Patch, then assume compromise.
Apply vendor security updates that correct Go's crypto/tls certificate public-key type validation. Update affected Go-built applications and container images as well as the toolchain; locally built applications should be rebuilt using a patched toolchain and redeployed. Relevant updates include RHSA-2021:3076 for the RHEL 8 Go Toolset, which supplies Go 1.15.14, and CIQ advisories ciqsa-2026_1599 and ciqsa-2026_1600 for affected Rocky Linux 8.6 golang and go-toolset packages.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-34558 exploited in the wild?
- As of Nov 15, 2026, Mallory has no reports of CVE-2021-34558 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-34558?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-34558, the earliest disclosed Jul 13, 2021.
- Is there a patch for CVE-2021-34558?
- Apply vendor security updates that correct Go's crypto/tls certificate public-key type validation. Update affected Go-built applications and container images as well as the toolchain; locally built applications should be rebuilt using a patched toolchain and redeployed.
- What products are affected by CVE-2021-34558?
- Golang Go, NetApp Cloud Insights Telegraf, Fedora Project Fedora, NetApp Storagegrid, Oracle Corporation Timesten In-Memory Database, and 1 more.
- How severe is CVE-2021-34558?
- CVE-2021-34558 has a CVSS v3.1 score of 6.5 (Medium) and an EPSS score of 7.0% (94th percentile) as of Nov 15, 2026.
Recent activity
39 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.