CVE-2021-31525
No exploitation reported by the sources we read.
- Published2021-05-27
- Fixed in0.0.0-20210428140749-89ef3d95e781
- WeaknessCWE-674
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
net/http in Go before 1.15.12 and 1.16.x before 1.16.4 allows remote attackers to cause a denial of service (panic) via a large header to ReadRequest or ReadResponse. Server, Transport, and Client can each be affected in some configurations.
Timeline
dates in UTC- 2021-05-2713:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 0.0 | < 0.0.0-20210428140749-89ef3d95e781 | 0.0.0-20210428140749-89ef3d95e781 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.16 | ≥ 1.16.0, < 1.16.4 | 1.16.4 | NVD · OSV |
| 1.16 | ≥ 1.16.0-0, < 1.16.4 | 1.16.4 | OSV |
| 1.15 | < 1.15.12 | 1.15.12 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 34.x | = 34 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- atomic-openshift-service-idlerRed Hat:openshift:4.7::el8all versions · fixed in 0:4.7.0-202107291238.p0.git.39cfc66.assembly.stream.el8
- cfsslCleanStartall versions · fixed in 1.5.0-r1
- containernetworking-pluginsRed Hat:openshift:4.8::el7all versions · fixed in 0:0.8.6-3.rhaos4.6.el7and 1 other package
- cri-oRed Hat:openshift:4.8::el8all versions · fixed in 0:1.21.2-8.rhaos4.8.git8d4264e.el8and 2 other packages
- cri-oRed Hat:openshift:4.8::el7all versions · fixed in 0:1.21.2-8.rhaos4.8.git8d4264e.el7and 1 other package
- cri-oRed Hat:openshift:4.7::el8all versions · fixed in 0:1.20.4-7.rhaos4.7.git6287500.el8and 2 other packages
- cri-oRed Hat:openshift:4.7::el7all versions · fixed in 0:1.20.4-7.rhaos4.7.git6287500.el7and 1 other package
- cri-toolsRed Hat:openshift:4.8::el8all versions · fixed in 0:1.21.0-3.el8and 2 other packages
60 more package ranges on OSV.dev
Vendor advisories
Red Hat Security Advisory: Windows Container Support for Red Hat OpenShift 5.0.0 [security update]
Red Hat Security Advisory: OpenShift Container Storage 3.11.z security and bug fix update
Red Hat Security Advisory: OpenShift Virtualization 4.9.0 RPMs security and bug fix update
Red Hat Security Advisory: OpenShift Container Storage 3.11.z Container Images Security and Bug Fix Update
Red Hat Security Advisory: Release of OpenShift Serverless 1.17.0
Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.17.0
5 more advisories
Fix
- Update golang.org/x/net to 0.0.0-20210428140749-89ef3d95e781
- Vendor fix Red Hat Product Security RHSA-2022:0577 · 2 productsFor Windows Machine Config Operator upgrades, see the following documentation: https://docs.openshift.com/container-platform/latest/windows_containers/windows-node-upgrades.html
- Vendor fix Red Hat Product Security RHSA-2022:0308 · 6 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2021:4103 · 6 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2021:3556 · 88 productsSee the Red Hat OpenShift Container Platform 4.6 documentation at: https://access.redhat.com/documentation/en-us/openshift_container_platform/4.6/html/serverless/index See the Red Hat OpenShift Container Platform 4.7 documentation at: https://access.redhat.com/documentation/en-us/openshift_containe…
- Vendor fix Red Hat Product Security RHBA-2021:2854 · 13 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 For details on how to install and use MTC, refer to: https://docs.openshift.com/container-pla…
- Vendor fix Red Hat Product Security RHSA-2021:2705 · 88 productsSee the Red Hat OpenShift Container Platform 4.6 documentation at: https://access.redhat.com/documentation/en-us/openshift_container_platform/4.6/html/serverless_applications/index See the Red Hat OpenShift Container Platform 4.7 documentation at: https://access.redhat.com/documentation/en-us/open…
Advisories and patches
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.15.9read 2026-10-23
- NVDCVSS 2.02.6read 2026-10-23
- NVDweakness (CWE)CWE-674read 2026-10-23
- FIRST EPSSEPSS score3.7 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2023-02-08
Identifiers
- BIT-golang-2021-31525same flawBitnami · Apache-2.0
- CGA-4mgg-gvqj-c68wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7xpf-hj99-vfc8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-c9qp-wjgc-g3pxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-g2mx-m64c-g4xcsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gq7j-gq59-6r39same flawChainguard · CC-BY-NC-ND-4.0
- CGA-h6x3-hhwc-w3rqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-hmmx-97fc-jg88same flawChainguard · CC-BY-NC-ND-4.0
- CGA-qvm6-x87m-4w9wsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rmv7-rc45-68w8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-rq32-v2fc-w8jqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rv3f-vwcf-cp7csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-rv7r-w5v4-p255same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vhfv-x8mj-p978same flawChainguard · CC-BY-NC-ND-4.0
- CGA-vmq4-xhqf-77gpsame flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2022-4104same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-h86h-8ppg-mxmhsame flawGitHub Advisory Database · CC-BY-4.0
- GO-2022-0236same flawGo Vulnerability Database · CC-BY-4.0
- MGASA-2021-0369advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2021:0904-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:10808-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:10809-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHBA-2021:2979advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2704advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2984advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3076advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3248advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3487advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3555advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:4103advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:5072advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0308advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2021:3076advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:2082-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:2085-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2021-05-27
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-h86h-8ppg-mxmh
Frequently asked questions
What is CVE-2021-31525?
Is CVE-2021-31525 actively exploited?
What is the CVSS score for CVE-2021-31525?
Running golang.org/x/net? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-h86h-8ppg-mxmh
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0