The crypto/tls package of Go through 1.16.5 does not properly assert that the type of public key in an X.509 certificate matches the expected type when doing a RSA based key exchange, allowing a malicious TLS server to cause a TLS client to panic.
CVE-2021-34558
Score 6.5 from GitHub Security Advisory published 2022-05-24. NVD baseline CVSS 6.5; sources differ by 0.0.
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EPSS
- 93.5%
- KEV
- Not listed
Published
July 15, 2021
Last Modified
November 21, 2024
References (32)
- cve@mitrehttps://golang.org/doc/devel/release#go1.16.minor
- cve@mitrehttps://groups.google.com/g/golang-announce
- cve@mitrehttps://groups.google.com/g/golang-announce/c/n9FxMelZGAQ
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BA7MFVXRBEKRTLSLYDICTYCGEMK2HZ7/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3XBQUFVI5TMV4KMKI7GKA223LHGPQISE/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BTC3JQUASFN5U2XA4UZIGAPZQBD5JSS/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D7FRFM7WWR2JCT6NORQ7AO6B453OMI3I/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITRXPCHUCJGXCX2CUEPKZRRTB27GG4ZB/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYIUSR4YP52PWG7YE7AA3DZ5OSURNFJB/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBMLUQMN6XRKPVOI5XFFBP4XSR7RNTYR/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLOGBB7XBBRB3J5FDPW5KWHSH7IRF64W/
- cve@mitrehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXJ2MVMAHOIGRH37ZSFYC4EVWLJFL2EQ/
- cve@mitrehttps://security.gentoo.org/glsa/202208-02
- cve@mitrehttps://security.netapp.com/advisory/ntap-20210813-0005/
- cve@mitrehttps://www.oracle.com/security-alerts/cpujan2022.html
Vendor Advisories for CVE-2021-34558(12)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2024:2988Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:rhel8 security update
- RHSA-2022:1372Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.10.0 enhancement, security & bug fix update
- RHSA-2022:0577Red Hat Product SecurityMedium
Red Hat Security Advisory: Windows Container Support for Red Hat OpenShift 5.0.0 [security update]
- RHSA-2022:0988Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (golang-github-vbatts-tar-split) security update
- RHSA-2022:0998Red Hat Product SecurityMedium
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (golang-github-vbatts-tar-split) security update
- RHSA-2022:0947Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Virtualization 4.10.0 Images security and bug fix update
- RHSA-2022:0260Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (etcd) security update
- RHSA-2022:0237Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (etcd) security update
- +4 more
Patch Availability(28)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
Go(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| stdlib | — | 1.16.6 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(23)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2021-345582021-07-31
The crypto/tls package of Go through 1.16.5 does not properly assert that the type of public key in an X.509 certificate matches the expected type when doing a RSA based key exchange allowing a malicious TLS server to cause a TLS client to panic.
- Red HatRHBA-2021:2979MODERATE2021-07-13
RHBA-2021:2979 — Moderate
- Red HatRHEA-2021:3287MODERATE2021-07-13
RHEA-2021:3287 — Moderate
- Red HatRHEA-2021:3941MODERATE2021-07-13
RHEA-2021:3941 — Moderate
- Red HatRHSA-2021:2983MODERATE2021-07-13
RHSA-2021:2983 — Moderate
- Red HatRHSA-2021:2984MODERATE2021-07-13
RHSA-2021:2984 — Moderate
- Red HatRHSA-2021:3009MODERATE2021-07-13
RHSA-2021:3009 — Moderate
- Red HatRHSA-2021:3076MODERATE2021-07-13
RHSA-2021:3076 — Moderate
- Red HatRHSA-2021:3146MODERATE2021-07-13
RHSA-2021:3146 — Moderate
- Red HatRHSA-2021:3229MODERATE2021-07-13
RHSA-2021:3229 — Moderate
- Red HatRHSA-2021:3248MODERATE2021-07-13
RHSA-2021:3248 — Moderate
- Red HatRHSA-2021:3361MODERATE2021-07-13
RHSA-2021:3361 — Moderate
- Red HatRHSA-2021:3555MODERATE2021-07-13
RHSA-2021:3555 — Moderate
- Red HatRHSA-2021:3556MODERATE2021-07-13
RHSA-2021:3556 — Moderate
- Red HatRHSA-2021:3598MODERATE2021-07-13
RHSA-2021:3598 — Moderate
- Red HatRHSA-2021:3733MODERATE2021-07-13
RHSA-2021:3733 — Moderate
- Red HatRHSA-2021:3759MODERATE2021-07-13
RHSA-2021:3759 — Moderate
- Red HatRHSA-2021:3820MODERATE2021-07-13
RHSA-2021:3820 — Moderate
- Red HatRHSA-2021:4104MODERATE2021-07-13
RHSA-2021:4104 — Moderate
- Red HatRHSA-2021:4226MODERATE2021-07-13
RHSA-2021:4226 — Moderate
- Red HatRHSA-2021:4582MODERATE2021-07-13
RHSA-2021:4582 — Moderate
- Red HatRHSA-2021:5085MODERATE2021-07-13
RHSA-2021:5085 — Moderate
- Red HatRHSA-2021:5086MODERATE2021-07-13
RHSA-2021:5086 — Moderate
Data Freshness Timeline
(refreshed 13× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 16:29 UTCOSV refresh
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 16:55 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
Show 70 moreShow fewer
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:18 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 01:51 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:31 UTCEG score recompute
- 2026-05-26 13:31 UTCVendor advisory
- 2026-05-26 13:31 UTCGHSA enrichment
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
Publicly available exploits
(1 reference)Working exploit code is in the public domain (1 GitHub PoC). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Open source ↗GitHub PoCalexzorin/cve-2021-34558First seen Jul 13, 2021
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-295
Frequently asked(5)
What is CVE-2021-34558?
When was CVE-2021-34558 disclosed?
Is CVE-2021-34558 actively exploited?
What is the CVSS score of CVE-2021-34558?
How do I remediate CVE-2021-34558?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-34558
Is Your Infrastructure Affected by CVE-2021-34558?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.