# CVE-2021-34558: Panic on certain certificates in crypto/tls

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 7.03%, higher than 94% of CVEs (2026-12-01)
- Published: 2021-07-15T13:47:36.000Z
- Modified: 2026-09-08T08:47:48.258Z
- Also known as: GO-2021-0243, BIT-GOLANG-2021-34558
- Weaknesses: CWE-295
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- stdlib (Go): before 1.15.14; from 1.16.0-0 before 1.16.6
- golang go: before 1.15.14; from 1.16.0 before 1.16.6
- fedoraproject fedora: 33; 34
- netapp cloud_insights_telegraf: no versions given
- netapp storagegrid: no versions given
- netapp trident: no versions given
- oracle timesten_in-memory_database: before 21.1.1.1.0
- golang (Bitnami): before 1.15.14; from 1.16.0 before 1.16.6

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://groups.google.com/g/golang-announce> (advisory, mailing-list, third-party-advisory)
- <https://golang.org/doc/devel/release#go1.16.minor> (advisory, release-notes, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D7FRFM7WWR2JCT6NORQ7AO6B453OMI3I/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BA7MFVXRBEKRTLSLYDICTYCGEMK2HZ7/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JYIUSR4YP52PWG7YE7AA3DZ5OSURNFJB/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WXJ2MVMAHOIGRH37ZSFYC4EVWLJFL2EQ/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBMLUQMN6XRKPVOI5XFFBP4XSR7RNTYR/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3XBQUFVI5TMV4KMKI7GKA223LHGPQISE/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BTC3JQUASFN5U2XA4UZIGAPZQBD5JSS/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITRXPCHUCJGXCX2CUEPKZRRTB27GG4ZB/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLOGBB7XBBRB3J5FDPW5KWHSH7IRF64W/> (vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (advisory, patch, third-party-advisory)
- <https://groups.google.com/g/golang-announce/c/n9FxMelZGAQ> (advisory, mailing-list, release-notes, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210813-0005/> (advisory, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (advisory, patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-02> (advisory, third-party-advisory, vendor-advisory)
- <https://go.dev/cl/334031> (fix)
- <https://go.googlesource.com/go/+/a98589711da5e9d935e8d690cfca92892e86d557> (fix)
- <https://go.dev/issue/47143> (report)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-34558> (web)

## Sources

- CVE List: [CVE-2021-34558](https://www.cve.org/CVERecord?id=CVE-2021-34558), CVE Terms of Use, modified 2024-08-04
- Go Vulnerability Database: [GO-2021-0243](https://pkg.go.dev/vuln/GO-2021-0243), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-34558](https://nvd.nist.gov/vuln/detail/CVE-2021-34558), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2021-34558](https://osv.dev/vulnerability/BIT-GOLANG-2021-34558), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-34558 · Whole record: https://cve.day/CVE-2021-34558.json · Rebuilt by cve.day 2026-11-25T22:58:02.668Z
