CVEfocus › CVE database › CVE-2021-34558

CVE-2021-34558

EPSS 7.0% (higher than 95% of CVEs)Published 2021-07-15Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Go, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

90Fixed
21Fix pending
8Will not fix
10Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 14.04golangFix pending
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2021-34558
Ubuntu 14.04golang-1.6Fix pending
Red Hat Enterprise Linux 9buildahFix pending
Affected
Red Hat Enterprise Linux 9buildah-testsFix pending
Affected
Red Hat Enterprise Linux 9go-toolsetNot affected
Red Hat Enterprise Linux 9golangNot affected
Red Hat Enterprise Linux 9golang-binNot affected
Red Hat Enterprise Linux 9golang-docsNot affected
Red Hat Enterprise Linux 9golang-miscNot affected
Red Hat Enterprise Linux 9golang-raceNot affected
Red Hat Enterprise Linux 9golang-srcNot affected
Red Hat Enterprise Linux 9golang-testsNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9podmanFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-dockerFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-gvproxyFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-pluginsFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-remoteFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9podman-testsFixed2:4.2.0-3.el9RHSA-2022:7954
Red Hat Enterprise Linux 9runcFix pending
Affected
Red Hat Enterprise Linux 9skopeoFix pending
Affected
Red Hat Enterprise Linux 9skopeo-testsFix pending
Affected
Red Hat Enterprise Linux 8aardvark-dnsFixed2:1.10.0-1.module+el8.10.0+21209+52deeb51RHSA-2024:2988
Red Hat Enterprise Linux 8buildahFixed
Will not fix
2:1.33.6-2.module+el8.10.0+21371+46937eceRHSA-2024:2988
Red Hat Enterprise Linux 8buildah-testsFixed
Will not fix
2:1.33.6-2.module+el8.10.0+21371+46937eceRHSA-2024:2988
Red Hat Enterprise Linux 8cockpit-podmanFixed0:84.1-1.module+el8.10.0+21373+0d273fdfRHSA-2024:2988
Red Hat Enterprise Linux 8conmonFixed3:2.1.10-1.module+el8.10.0+21077+98b84d8aRHSA-2024:2988
Red Hat Enterprise Linux 8container-selinuxFixed2:2.229.0-2.module+el8.10.0+21196+3f0abbcaRHSA-2024:2988
Red Hat Enterprise Linux 8containernetworking-pluginsFixed1:1.4.0-2.module+el8.10.0+21366+f9cb49f8RHSA-2024:2988
Red Hat Enterprise Linux 8containers-commonFixed2:1-81.module+el8.10.0+21340+c6c7475aRHSA-2024:2988
Red Hat Enterprise Linux 8critFixed0:3.18-4.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8criuFixed0:3.18-4.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8criu-develFixed0:3.18-4.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8criu-libsFixed0:3.18-4.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8crunFixed0:1.14.3-2.module+el8.10.0+21340+c6c7475aRHSA-2024:2988
Red Hat Enterprise Linux 8delveFixed0:1.5.0-2.module+el8.4.0+8864+58b0fcdbRHSA-2021:3076
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.13-1.module+el8.10.0+20412+95ee28e2RHSA-2024:2988
Red Hat Enterprise Linux 8go-toolsetFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golangFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golang-binFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golang-docsFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golang-miscFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golang-raceFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golang-srcFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8golang-testsFixed0:1.15.14-1.module+el8.4.0+11833+614b07b8RHSA-2021:3076
Red Hat Enterprise Linux 8grafanaFixed0:7.5.9-4.el8RHSA-2021:4226
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-1.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8netavarkFixed2:1.10.3-1.module+el8.10.0+21306+6be40ce7RHSA-2024:2988
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.10-1.module+el8.10.0+20565+a40ba0e5RHSA-2024:2988
Red Hat Enterprise Linux 8podmanFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8podman-catatonitFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8podman-dockerFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8podman-gvproxyFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8podman-manpagesFix pending
Affected
Red Hat Enterprise Linux 8podman-pluginsFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8podman-remoteFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8podman-testsFixed
Affected
3:4.9.4-0.1.module+el8.10.0+21350+ea09fba1RHSA-2024:2988
Red Hat Enterprise Linux 8python-podmanFixed0:4.9.0-1.module+el8.10.0+21196+3f0abbcaRHSA-2024:2988
Red Hat Enterprise Linux 8python3-criuFixed0:3.18-4.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 8python3-podmanFixed0:4.9.0-1.module+el8.10.0+21196+3f0abbcaRHSA-2024:2988
Red Hat Enterprise Linux 8runcFixed1:1.1.12-1.module+el8.10.0+21251+62b7388cRHSA-2024:2988
Red Hat Enterprise Linux 8skopeoFixed2:1.14.3-0.1.module+el8.10.0+21251+62b7388cRHSA-2024:2988
Red Hat Enterprise Linux 8skopeo-testsFixed2:1.14.3-0.1.module+el8.10.0+21251+62b7388cRHSA-2024:2988
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.2.3-1.module+el8.10.0+21306+6be40ce7RHSA-2024:2988
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.5-2.module+el8.10.0+21341+ff0b5f89RHSA-2024:2988
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.5-2.module+el8.10.0+21341+ff0b5f89RHSA-2024:2988
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-20.module+el8.9.0+20326+387084d0RHSA-2024:2988
Red Hat Enterprise Linux 7buildahWill not fix
Out of support scope
Red Hat Enterprise Linux 7golangWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-binWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-docsWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-miscWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-srcWill not fix
Out of support scope
Red Hat Enterprise Linux 7golang-testsWill not fix
Out of support scope
Red Hat Enterprise Linux 7podmanWill not fix
Out of support scope
AlmaLinux 9podmanFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-dockerFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-gvproxyFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-pluginsFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-remoteFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 9podman-testsFixed2:4.2.0-3.el9ALSA-2022:7954
AlmaLinux 8grafanaFixed7.5.9-4.el8ALSA-2021:4226
Rocky Linux 8aardvark-dnsFixed2:1.10.0-1.module+el8.10.0+1872+2e18eb19RLSA-2024:2988
Rocky Linux 8cockpit-podmanFixed0:84.1-1.module+el8.10.0+1948+4b5cd4a9RLSA-2024:2988
Rocky Linux 8conmonFixed3:2.1.10-1.module+el8.10.0+1896+b18fa106RLSA-2024:2988
Rocky Linux 8container-selinuxFixed2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux 8containernetworking-pluginsFixed1:1.4.0-2.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux 8containers-commonFixed2:1-81.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux 8crunFixed0:1.14.3-2.module+el8.10.0+1896+b18fa106RLSA-2024:2988
Rocky Linux 8delveFixed0:1.5.0-2.module+el8.4.0+396+d2d16ae3RLSA-2021:3076
Rocky Linux 8fuse-overlayfsFixed0:1.13-1.module+el8.10.0+1843+6892ab28RLSA-2024:2988
Rocky Linux 8go-toolsetFixed0:1.15.14-1.module+el8.4.0+632+4dba2916RLSA-2021:3076
Rocky Linux 8golangFixed0:1.15.14-1.module+el8.4.0+632+4dba2916RLSA-2021:3076
Rocky Linux 8grafanaFixed0:7.5.9-4.el8RLSA-2021:4226
Rocky Linux 8libslirpFixed0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2024:2988
Rocky Linux 8netavarkFixed2:1.10.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.10-1.module+el8.10.0+1948+4b5cd4a9RLSA-2024:2988
Rocky Linux 8python-podmanFixed0:4.9.0-1.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux 8runcFixed1:1.1.12-1.module+el8.10.0+1825+623b0c20RLSA-2024:2988
Rocky Linux 8slirp4netnsFixed0:1.2.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:2988
Rocky Linux 8toolboxFixed0:0.0.99.5-2.module+el8.10.0+1896+b18fa106.rocky.0.2RLSA-2024:2988
Alpine Linux 3.24goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.23goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.22goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.21goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.20goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.19goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.18goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.17goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.16goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.15goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.14goFixed1.16.6-r0ALPINE-CVE-2021-34558
Alpine Linux 3.13goFixed1.15.14-r0ALPINE-CVE-2021-34558
Go librarystdlibFixed1.15.14GO-2021-0243

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.