CVE-2021-34558
MEDIUM 6.5CVSS 3.1Panic on certain certificates in crypto/tls
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.
- Published
- 15 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-295
- Also known as
- BIT-golang-2021-34558GO-2021-0243
- Sources
- NVDJSONOSV GO-2021-0243JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.6 | AV:N/AC:H/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.15.14 | 1.15.14 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.16.0, < 1.16.6 | 1.16.6 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | netapp | cloud_insights_telegrafcpe:2.3:a:netapp:cloud_insights_telegraf:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | storagegridcpe:2.3:a:netapp:storagegrid:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | netapp | tridentcpe:2.3:a:netapp:trident:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | oracle | timesten_in-memory_databasecpe:2.3:a:oracle:timesten_in-memory_database:*:*:*:*:*:*:*:* |
< 21.1.1.1.0 | 21.1.1.1.0 |
| OSV | Go | stdlib | < 1.15.14; >= 1.16.0-0, < 1.16.6 | 1.15.14, 1.16.6 |
References
- https://golang.org/doc/devel/release#go1.16.minor · Release Notes, Vendor Advisory
- https://groups.google.com/g/golang-announce · Mailing List, Third Party Advisory
- https://groups.google.com/g/golang-announce/c/n9FxMelZGAQ · Mailing List, Release Notes, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BA7MFVXRBEKRTLSLYDICTYCGEMK2HZ7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3XBQUFVI5TMV4KMKI7GKA223LHGPQISE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BTC3JQUASFN5U2XA4UZIGAPZQBD5JSS/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D7FRFM7WWR2JCT6NORQ7AO6B453OMI3I/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITRXPCHUCJGXCX2CUEPKZRRTB27GG4ZB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYIUSR4YP52PWG7YE7AA3DZ5OSURNFJB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBMLUQMN6XRKPVOI5XFFBP4XSR7RNTYR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLOGBB7XBBRB3J5FDPW5KWHSH7IRF64W/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXJ2MVMAHOIGRH37ZSFYC4EVWLJFL2EQ/
- https://security.gentoo.org/glsa/202208-02 · Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210813-0005/ · Third Party Advisory
- https://www.oracle.com/security-alerts/cpujan2022.html · Patch, Third Party Advisory
- https://www.oracle.com/security-alerts/cpuoct2021.html · Patch, Third Party Advisory
- https://go.dev/cl/334031 · FIX
- https://go.googlesource.com/go/+/a98589711da5e9d935e8d690cfca92892e86d557 · FIX
- https://go.dev/issue/47143 · REPORT
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Jul 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Feb 2022)