cve.bz

CVE-2021-36221 Race Condition

5.9 mediumEPSS 3.1%Fix available

Medium (5.9). EPSS 3.1% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.15.15, 1.16.7.

On this page
Go before 1.15.15 and 1.16.x before 1.16.7 has a race condition that can lead to a net/http/httputil ReverseProxy panic upon an ErrAbortHandler abort.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.1% (unchanged from 3.1% a week ago; 3.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
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-36221 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-36221?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-36221?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-36221 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.15
golang:gofrom 1.16.0 before 1.16.7
fedoraproject:fedora33
fedoraproject:fedora34
fedoraproject:fedora35
debian:debian_linux9.0
oracle:timesten_in-memory_databasebefore 21.1.1.1.0
siemens:scalance_lpe9403_firmwarebefore 2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2021-0245Gostdlib<1.15.15
>=1.16.0-0 <1.16.7
1.15.15, 1.16.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9golang-1.71.7.4-2+deb9u4DLA-2892-1
Debian9golang-1.81.8.1-1+deb9u4DLA-2891-1
Debian10golang-1.111.11.6-1+deb10u6DLA-3395-1
Debian11golang-1.151.15.15-1~deb11u1DEBIAN-CVE-2021-36221
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2021-36221
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2021-36221
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2021-36221
Ubuntu20.04:LTSgolang-1.13, golang-1.14no fix listedUBUNTU-CVE-2021-36221
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2021-36221
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2021-36221
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2021-36221
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.1.0-4.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.27.0-2.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamcockpit-podman0:53-1.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.4-1.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.189.0-1.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.1.1-3.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamcontainers-common2:1-40.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamcrit, criu, criu-libs and 5 more0:3.15-3.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamcrun, crun-debuginfo, crun-debugsource0:1.5-1.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.6.0-1.module+el8.5.0+10379+d6b83bd0RHSA-2021:4156
Red Hatenterprise_linux:8::appstreamfuse-overlayfs, fuse-overlayfs-debuginfo, fuse-overlayfs-debugsource0:1.9-1.module+el8.7.0+16772+33343656RHSA-2022:7457
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.16.7-1.module+el8.5.0+12246+1aac4e3fRHSA-2021:4156
25 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 8 morego1.151.15.15-1.39.1SUSE-SU-2021:2787-1
SUSELinux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3go1.161.16.7-1.23.1SUSE-SU-2021:2788-1
openSUSELeap 15.2go1.151.15.15-lp152.26.1openSUSE-SU-2021:1207-1
openSUSELeap 15.2go1.161.16.7-lp152.8.1openSUSE-SU-2021:1199-1
openSUSELeap 15.3go1.151.15.15-1.39.1openSUSE-SU-2021:2787-1
openSUSELeap 15.3go1.161.16.7-1.23.1openSUSE-SU-2021:2788-1
openSUSETumbleweedgo1.151.15.15-1.2openSUSE-SU-2024:10808-1
openSUSETumbleweedgo1.161.16.8-1.1openSUSE-SU-2024:10809-1
AlmaLinux8delve1.6.0-1.module_el8.5.0+2604+960c7771ALSA-2021:4156
Rocky Linux8cockpit-podman0:53-1.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux8conmon2:2.1.4-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux8container-selinux2:2.189.0-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux8container-selinux2:2.189.0-1.module+el8.7.0+1076+9b1c11c1RLSA-2022:7457
Rocky Linux8containernetworking-plugins1:1.1.1-3.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux8containernetworking-plugins1:1.1.1-3.module+el8.7.0+1078+e72fcd4fRLSA-2022:7457
Rocky Linux8criu0:3.15-3.module+el8.5.0+710+4c471e88RLSA-2022:7457
Rocky Linux8criu0:3.15-3.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux8criu0:3.15-3.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux8crun0:1.5-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7457
Rocky Linux8crun0:1.5-1.module+el8.7.0+1077+0e4f03d4RLSA-2022:7457
Rocky Linux8delve0:1.6.0-1.module+el8.5.0+694+f77f0bfdRLSA-2021:4156
15 more for Rocky Linux in the JSON.
Alpinev3.13go1.15.15-r0ALPINE-CVE-2021-36221
Alpinev3.14, v3.15, v3.16 and 8 morego1.16.7-r0ALPINE-CVE-2021-36221

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. 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

* In Red Hat OpenStack Platform, because the flaw has a lower impact and the fix would require a substantial amount of development, no update will be provided at this time for the impacted RHOSP packages.

* In Service Telemetry Framework, because the flaw has a lower impact and the package is not directly used by STF1.3, no update will be provided at this time for the STF1.3 sg-core-container. Additionally, because Service Telemetry Framework1.2 will be retiring soon, no update will be provided at this time for the STF1.2 smart-gateway-container.

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 Serveless 1.19openshift-serverless-1/client-kn-rhel8:0.25.1-1Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-controller-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-mtbroker-filter-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-mtbroker-ingress-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-mtchannel-broker-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-mtping-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
Openshift Serveless 1.19openshift-serverless-1/eventing-storage-version-migration-rhel8:0.25.0-2Fixed 2021-11-23RHSA-2021:4766
OpenShift Serverlessknative-eventingAffected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.0servicemesh-operatorAffected
Red Hat Ceph Storage 2golangOut of support scope
Red Hat Ceph Storage 2grafanaOut of support scope
Red Hat Ceph Storage 3golangOut of support scope
Red Hat Ceph Storage 3golang-github-prometheus-node_exporterOut of support scope
Red Hat Ceph Storage 3grafanaOut of support scope
Red Hat Ceph Storage 3grafana-containerOut of support scope
Red Hat Ceph Storage 4rhceph/rhceph-4-dashboard-rhel8Not affected
307 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-36221.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-167-09Siemens SCALANCE LPE9403 Third-Party Vulnerabilities2022-06-14MultipleSCALANCE LPE9403none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

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

References

Check your stackJSON