CVE-2021-34558
JSON

6.5medium

Panic on certain certificates in crypto/tls

Severity
6.5medium CVSS:3.1 by NVD
Exploit likelihood
7.03% (higher than 94% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GO-2021-0243BIT-GOLANG-2021-34558

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
stdlib (Go)before 1.15.14, from 1.16.0-0 before 1.16.6Go Vulnerability Database
golang gobefore 1.15.14, from 1.16.0 before 1.16.6NVD
fedoraproject fedora33, 34NVD
netapp cloud_insights_telegrafNot specifiedNVD
netapp storagegridNot specifiedNVD
netapp tridentNot specifiedNVD
oracle timesten_in-memory_databasebefore 21.1.1.1.0NVD
golang (Bitnami)before 1.15.14, from 1.16.0 before 1.16.6Bitnami Vulnerability Database

All scores

NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD2.6low CVSS:2.0AV:N/AC:H/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

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.

Go Vulnerability Database

crypto/tls clients can panic when provided a certificate of the wrong type for the negotiated parameters. net/http clients performing HTTPS requests are also affected.

NVD (es)

El paquete crypto/tls de Go versiones hasta 1.16.5, no afirma apropiadamente que el tipo de clave pública en un certificado X.509 coincida con el tipo esperado cuando se hace un intercambio de claves basado en RSA, permitiendo a un servidor TLS malicioso causar el pánico en un cliente TLS

References

https://groups.google.com/g/golang-announceadvisory, mailing-list, third-party-advisory
https://golang.org/doc/devel/release#go1.16.minoradvisory, 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.htmladvisory, patch, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-34558 changed 2024-08-04CVE Terms of Use
Go Vulnerability DatabaseGO-2021-0243 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-34558 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2021-34558 changed 2026-09-08Apache-2.0