CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HMedium (5.9). EPSS 3.7% estimated probability of exploitation activity in the next 30 days. Fixed in golang.org/x/net 0.0.0-20210428140749-89ef3d95e781.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:Hgolang.org/x/net (Go): fixed in 0.0.0-20210428140749-89ef3d95e781stdlib (Go): fixed in 1.15.12, 1.16.4Explain CVE-2021-31525 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-31525?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-31525?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-31525 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| golang:go | before 1.15.12 |
| golang:go | from 1.16.0 before 1.16.4 |
| fedoraproject:fedora | 34 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-h86h-8ppg-mxmh | Go | golang.org/x/net | <0.0.0-20210428140749-89ef3d95e781 | 0.0.0-20210428140749-89ef3d95e781 |
| GO-2022-0236 | Go | stdlib | <1.15.12 >=1.16.0-0 <1.16.4 | 1.15.12, 1.16.4 |
| GO-2022-0236 | Go | golang.org/x/net | <0.0.0-20210428140749-89ef3d95e781 | 0.0.0-20210428140749-89ef3d95e781 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | golang-golang-x-net | 1:0.0+git20210119.5f4716e+dfsg-3 | DEBIAN-CVE-2021-31525 |
| Ubuntu | Pro:16.04:LTS | google-guest-agent, golang-golang-x-net-dev | no fix listed | UBUNTU-CVE-2021-31525 |
| Ubuntu | Pro:18.04:LTS, Pro:20.04:LTS | golang-1.16, golang-golang-x-net-dev | no fix listed | UBUNTU-CVE-2021-31525 |
| Red Hat | container_native_virtualization:4.9::el7 | kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable | 0:4.9.0-287.el7 | RHSA-2021:4103 |
| Red Hat | container_native_virtualization:4.9::el8 | kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable | 0:4.9.0-287.el8 | RHSA-2021:4103 |
| Red Hat | enterprise_linux:8::appstream | delve, delve-debuginfo, delve-debugsource | 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:3076 |
| Red Hat | enterprise_linux:8::appstream | golang, go-toolset, golang-bin and 5 more | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | RHSA-2021:3076 |
| Red Hat | openshift:4.7::el7 | cri-o, cri-o-debuginfo | 0:1.20.4-7.rhaos4.7.git6287500.el7 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el7 | openshift, openshift-hyperkube | 0:4.7.0-202107292242.p0.git.558d959.assembly.stream.el7 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el7 | openshift-clients, openshift-clients-redistributable | 0:4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el7 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el8 | atomic-openshift-service-idler | 0:4.7.0-202107291238.p0.git.39cfc66.assembly.stream.el8 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el8 | cri-o, cri-o-debuginfo, cri-o-debugsource | 0:1.20.4-7.rhaos4.7.git6287500.el8 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el8 | ignition, ignition-validate, ignition-debuginfo and 2 more | 0:2.9.0-4.rhaos4.7.git1d56dc8.el8 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el8 | openshift, openshift-hyperkube | 0:4.7.0-202107292242.p0.git.558d959.assembly.stream.el8 | RHBA-2021:2979 |
| Red Hat | openshift:4.7::el8 | openshift-clients, openshift-clients-redistributable | 0:4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el8 | RHBA-2021:2979 |
| 17 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3 | go1.15 | 1.15.12-1.30.1 | SUSE-SU-2021:2082-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3 | go1.16 | 1.16.4-1.14.2 | SUSE-SU-2021:2085-1 |
| openSUSE | Leap 15.2 | go1.15 | 1.15.12-lp152.17.1 | openSUSE-SU-2021:0904-1 |
| openSUSE | Tumbleweed | go1.15 | 1.15.15-1.2 | openSUSE-SU-2024:10808-1 |
| openSUSE | Tumbleweed | go1.16 | 1.16.8-1.1 | openSUSE-SU-2024:10809-1 |
| Rocky Linux | 8 | delve | 0:1.5.0-2.module+el8.4.0+396+d2d16ae3 | RLSA-2021:3076 |
| Rocky Linux | 8 | golang, go-toolset | 0:1.15.14-1.module+el8.4.0+632+4dba2916 | RLSA-2021:3076 |
| Alpine | v3.13 | go | 1.15.12-r0 | ALPINE-CVE-2021-31525 |
| Alpine | v3.14, v3.15, v3.16 and 8 more | go | 1.16.4-r0 | ALPINE-CVE-2021-31525 |
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; 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 rates this Moderate.
This vulnerability potentially affects any component written in Go that uses net/http from the standard library. In OpenShift Container Platform (OCP), OpenShift Virtualization, OpenShift ServiceMesh (OSSM) and OpenShift distributed tracing (formerly OpenShift Jaeger), no server side component allows HTTP header values larger than 1 MB (the default), preventing this vulnerability from being exploited by malicious clients. 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 Virtualization
* OpenShift ServiceMesh
* OpenShift distributed tracing components.
| Product | Package | State | Advisory |
|---|---|---|---|
| Native Client for RHEL 7 for Red Hat Storage | heketi-0:10.4.0-2.el7rhgs | Fixed 2022-01-27 | RHSA-2022:0308 |
| Openshift Serveless 1.16 | openshift-serverless-1/client-kn-rhel8:0.22.0-4 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-controller-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtbroker-filter-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtbroker-ingress-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtchannel-broker-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Openshift Serveless 1.16 | openshift-serverless-1/eventing-mtping-rhel8:0.22.0-2 | Fixed 2021-07-13 | RHSA-2021:2705 |
| Migration Toolkit for Containers | rhmtc/openshift-migration-rhel8-operator | Affected | |
| Migration Toolkit for Containers | rhmtc/openshift-migration-velero-plugin-for-mtc-rhel8 | Affected | |
| OpenShift Serverless | knative-eventing | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-grafana | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-operator | Affected | |
| OpenShift Service Mesh 2.0 | servicemesh-prometheus | Affected | |
| Red Hat Ceph Storage 2 | golang | Out of support scope | |
| Red Hat Ceph Storage 2 | grafana | Out of support scope | |
| Red Hat Ceph Storage 3 | golang | Out of support scope | |
| 305 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-31525.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.