cve.bz

CVE-2021-34558 Improper Certificate Validation

6.5 mediumEPSS 7.0%Fix available

Medium (6.5). EPSS 7.0% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.15.14, 1.16.6.

On this page
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.

Severity

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
EPSS
7.0% (unchanged from 7.0% a week ago; 7.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-34558 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-34558?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-34558?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-34558 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
golang:gobefore 1.15.14
golang:gofrom 1.16.0 before 1.16.6
fedoraproject:fedora33
fedoraproject:fedora34
oracle:timesten_in-memory_databasebefore 21.1.1.1.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2021-0243Gostdlib<1.15.14
>=1.16.0-0 <1.16.6
1.15.14, 1.16.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11golang-1.151.15.9-6DEBIAN-CVE-2021-34558
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2021-34558
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2021-34558
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2021-34558
Ubuntu20.04:LTSgolang-1.13, golang-1.14no fix listedUBUNTU-CVE-2021-34558
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2021-34558
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2021-34558
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2021-34558
Red Hatcontainer_native_virtualization:2.6::el7kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:2.6.8-211.el7RHSA-2021:4722
Red Hatcontainer_native_virtualization:2.6::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:2.6.8-211.el8RHSA-2021:4722
Red Hatcontainer_native_virtualization:4.8::el7kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.8.5-278.el7RHSA-2022:1329
Red Hatcontainer_native_virtualization:4.8::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.8.5-278.el8RHSA-2022:1329
Red Hatdevtools:2021go-toolset-1.15, go-toolset-1.15-build, go-toolset-1.15-golang and 8 more0:1.15.14-1.el7_9RHSA-2021:3015
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.0-1.module+el8.10.0+21209+52deeb51RHSA-2024:2988
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.6-2.module+el8.10.0+21371+46937eceRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+21373+0d273fdfRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+21077+98b84d8aRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-2.module+el8.10.0+21196+3f0abbcaRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-2.module+el8.10.0+21366+f9cb49f8RHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-81.module+el8.10.0+21340+c6c7475aRHSA-2024:2988
46 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3go1.151.15.14-1.36.1SUSE-SU-2021:2398-1
SUSELinux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3go1.161.16.6-1.20.1SUSE-SU-2021:2392-1
openSUSELeap 15.2go1.151.15.14-lp152.23.1openSUSE-SU-2021:1079-1
openSUSELeap 15.2go1.161.16.6-lp152.5.1openSUSE-SU-2021:1078-1
openSUSELeap 15.3go1.151.15.14-1.36.1openSUSE-SU-2021:2398-1
openSUSELeap 15.3go1.161.16.6-1.20.1openSUSE-SU-2021:2392-1
openSUSETumbleweedgo1.151.15.15-1.2openSUSE-SU-2024:10808-1
openSUSETumbleweedgo1.161.16.8-1.1openSUSE-SU-2024:10809-1
AlmaLinux8grafana7.5.9-4.el8ALSA-2021:4226
AlmaLinux9podman, podman-tests, podman-docker and 3 more2:4.2.0-3.el9ALSA-2022:7954
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1843+6892ab28RLSA-2024:2988
Rocky Linux8aardvark-dns2:1.10.0-1.module+el8.10.0+1872+2e18eb19RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1843+6892ab28RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1872+2e18eb19RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1874+ce489889RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1880+8e896d1bRLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1896+b18fa106RLSA-2024:2988
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1948+4b5cd4a9RLSA-2024:2988
76 more for Rocky Linux in the JSON.
Alpinev3.13go1.15.14-r0ALPINE-CVE-2021-34558
Alpinev3.14, v3.15, v3.16 and 8 morego1.16.6-r0ALPINE-CVE-2021-34558
Azure Linux3golangno fix listedAZL-105164 AZL-105167

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

* This vulnerability potentially affects any component written in Go that uses crypto/tls from the standard library. It is possible for components that make client connections to malicious servers to be exploited, however the maximum impact is a crash. This vulnerability is rated Low for the following components:

- OpenShift Container Platform

- OpenShift distributed tracing (formerly OpenShift Jaeger)

- OpenShift Migration Toolkit for Containers

- Red Hat Advanced Cluster Management for Kubernetes

- Red Hat OpenShift on AWS

- Red Hat OpenShift Virtualization

* Because OpenShift Container Platform 3.11 is in Maintenance Phase of the support, only Important and Critical severity vulnerabilities will be addressed at this time.

* Because Service Telemetry Framework1.2 will be retiring soon and the flaw's impact is lower, no update will be provided at this time for STF1.2's containers.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Openshift Serverless 1.17openshift-serverless-1/client-kn-rhel8:0.23.2-2Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-controller-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-mtbroker-filter-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-mtbroker-ingress-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-mtchannel-broker-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-mtping-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
Openshift Serverless 1.17openshift-serverless-1/eventing-storage-version-migration-rhel8:0.23.0-5Fixed 2021-09-16RHSA-2021:3556
OpenShift PipelinesgolangAffected
OpenShift Serverlessknative-eventingAffected
OpenShift Service Mesh 2.0golangAffected
Red Hat Advanced Cluster Management for Kubernetes 2applifecycle-backend-e2eNot affected
Red Hat Advanced Cluster Management for Kubernetes 2assisted-installerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2assisted-installer-agentNot affected
Red Hat Advanced Cluster Management for Kubernetes 2assisted-serviceNot affected
Red Hat Advanced Cluster Management for Kubernetes 2cert-managerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2cert-policy-controllerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2cluster-curator-controllerNot affected
402 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-34558.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON