Improper Certificate Validation in Go programming language - CVE-2021-34558

 

Improper Certificate Validation in Go programming language - CVE-2021-34558

Published: August 9, 2021 / Updated: August 25, 2021


Vulnerability identifier: #VU55665
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2021-34558
CWE-ID: CWE-295
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Google
Affected software:
Go programming language

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to improper certificate verification in crypto/tls package in Go when processing X.509 certificates. The application 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.


How to mitigate CVE-2021-34558

Install updates from vendor's website.

Sources