CVE-2021-31525: 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…
Noroxi assessment
Priority: Monitor (action score 24/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.6% (FIRST EPSS); higher than 89.8% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. Special conditions such as timing or configuration are required.
- Fixed version: go (Alpine:v3.13) 1.15.12-r0; go (Alpine:v3.14) 1.16.4-r0; golang-golang-x-net (Debian:12) 1:0.0+git20210119.5f4716e+dfsg-3.
- Mentioned 5 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to go (Alpine:v3.13) 1.15.12-r0; go (Alpine:v3.14) 1.16.4-r0; golang-golang-x-net (Debian:12) 1:0.0+git20210119.5f4716e+dfsg-3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- GHSA-h86h-8ppg-mxmh
- GO-2022-0236
- openSUSE-SU-2021:0904-1
- openSUSE-SU-2024:10808-1
- openSUSE-SU-2024:10809-1
- RHBA-2021:2979
- RHSA-2021:2704
- RHSA-2021:2984
- RHSA-2021:3076
- RHSA-2021:3248
- RHSA-2021:3487
- RHSA-2021:3555
- RHSA-2021:4103
- RHSA-2021:5072
- RHSA-2022:0308
- RLSA-2021:3076
- SUSE-SU-2021:2082-1
- SUSE-SU-2021:2085-1
- Published
- May 27, 2021
- Updated
- Jun 16, 2026
- EPSS
- 3.6% · 89th percentile
- CWE
- CWE-674
Report tools
Action score
24
Low priority for now.
- CVSS
- 23 / 40 · 5.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.6%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| golang | go | cpe:2.3:a:golang:go |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora34
- golang gobefore 1.15.12
- golang go1.16.0 and later · before 1.16.4
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.13 | go | from 1.16.0 · before 1.15.12-r0 | 1.15.12-r0 |
| Alpine:v3.14 | go | from 1.16.0 · before 1.16.4-r0 | 1.16.4-r0 |
| Debian:12 | golang-golang-x-net | before 1:0.0+git20210119.5f4716e+dfsg-3 | 1:0.0+git20210119.5f4716e+dfsg-3 |
| Go | golang.org/x/net | before 0.0.0-20210428140749-89ef3d95e781 | 0.0.0-20210428140749-89ef3d95e781 |
| Go | stdlib | from 1.16.0-0 · before 1.16.4 | 1.16.4 |
| Go | stdlib | before 1.15.12 | 1.15.12 |
| openSUSE:Leap 15.2 | go1.15 | before 1.15.12-lp152.17.1 | 1.15.12-lp152.17.1 |
| openSUSE:Tumbleweed | go1.15 | before 1.15.15-1.2 | 1.15.15-1.2 |
| openSUSE:Tumbleweed | go1.16 | before 1.16.8-1.1 | 1.16.8-1.1 |
| Red Hat:container_native_virtualization:4.9::el7 | kubevirt | before 0:4.9.0-287.el7 | 0:4.9.0-287.el7 |
| Red Hat:container_native_virtualization:4.9::el7 | kubevirt-virtctl | before 0:4.9.0-287.el7 | 0:4.9.0-287.el7 |
| Red Hat:container_native_virtualization:4.9::el7 | kubevirt-virtctl-redistributable | before 0:4.9.0-287.el7 | 0:4.9.0-287.el7 |
| Red Hat:container_native_virtualization:4.9::el8 | kubevirt | before 0:4.9.0-287.el8 | 0:4.9.0-287.el8 |
| Red Hat:container_native_virtualization:4.9::el8 | kubevirt-virtctl | before 0:4.9.0-287.el8 | 0:4.9.0-287.el8 |
| Red Hat:container_native_virtualization:4.9::el8 | kubevirt-virtctl-redistributable | before 0:4.9.0-287.el8 | 0:4.9.0-287.el8 |
| Red Hat:enterprise_linux:8::appstream | delve | before 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb | 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb |
| Red Hat:enterprise_linux:8::appstream | delve-debuginfo | before 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb | 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb |
| Red Hat:enterprise_linux:8::appstream | delve-debugsource | before 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb | 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb |
| Red Hat:enterprise_linux:8::appstream | go-toolset | before 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 |
| Red Hat:enterprise_linux:8::appstream | golang | before 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 |
| Red Hat:enterprise_linux:8::appstream | golang-bin | before 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 |
| Red Hat:enterprise_linux:8::appstream | golang-docs | before 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 |
| Red Hat:enterprise_linux:8::appstream | golang-misc | before 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 |
| Red Hat:enterprise_linux:8::appstream | golang-race | before 0:1.15.14-1.module+el8.4.0+11833+614b07b8 | 0:1.15.14-1.module+el8.4.0+11833+614b07b8 |
+60
Same product
golang: all recordsOther highest-scoring records for the same primary product.
- CVE-2018-7187The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import path (get/vcs.go only…54Plan
- CVE-2018-16873In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag…52Plan
- CVE-2021-38297Go before 1.16.9 and 1.17.x before 1.17.2 has a Buffer Overflow via large arguments in a function invocation from a WASM module, when…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2021-27919Mar 10, 2021 · archive/zip in Go 1.16.x before 1.16.1 allows attackers to cause a denial of service (panic) upon attempted use of the Reader.Open API for…22Monitor
- ← EarlierCVE-2021-33194May 26, 2021 · golang.org/x/net before v0.0.0-20210520170846-37e1c6afe023 allows attackers to cause a denial of service (infinite loop) via crafted…32Monitor
- Later →CVE-2012-2666Jul 9, 2021 · golang/go in 1.0.2 fixes all.bash on shared machines.40Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:go | 1.15.12-r0 · Alpine:v3.13 | Package registry (OSV) |
| debian:golang-golang-x-net | 1:0.0+git20210119.5f4716e+dfsg-3 · Debian:12 | Package registry (OSV) |
| Go:golang.org/x/net | 0.0.0-20210428140749-89ef3d95e781 | Package registry (OSV) |
| Go:stdlib | 1.15.12 | Package registry (OSV) |
| Go:stdlib | 1.16.4 | Package registry (OSV) |
| opensuse:go1.15 | 1.15.12-lp152.17.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:go1.16 | 1.16.8-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:atomic-openshift-service-idler | 0:4.7.0-202107291238.p0.git.39cfc66.assembly.stream.el8 · Red Hat:openshift:4.7::el8 | Package registry (OSV) |
| red hat:cri-o | 0:1.20.4-7.rhaos4.7.git6287500.el7 · Red Hat:openshift:4.7::el7 | Package registry (OSV) |
| red hat:cri-o-debuginfo | 0:1.20.4-7.rhaos4.7.git6287500.el7 · Red Hat:openshift:4.7::el7 | Package registry (OSV) |
| red hat:ignition | 0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8 | Package registry (OSV) |
| red hat:ignition-debuginfo | 0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8 | Package registry (OSV) |
| red hat:ignition-debugsource | 0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8 | Package registry (OSV) |
| red hat:ignition-validate | 0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8 | Package registry (OSV) |
| red hat:ignition-validate-debuginfo | 0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8 | Package registry (OSV) |
| red hat:openshift | 0:4.7.0-202107292242.p0.git.558d959.assembly.stream.el7 · Red Hat:openshift:4.7::el7 | Package registry (OSV) |
| red hat:openshift-clients | 0:4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el7 · Red Hat:openshift:4.7::el7 | Package registry (OSV) |
| red hat:openshift-clients-redistributable | 0:4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el7 · Red Hat:openshift:4.7::el7 | Package registry (OSV) |
| red hat:openshift-hyperkube | 0:4.7.0-202107292242.p0.git.558d959.assembly.stream.el7 · Red Hat:openshift:4.7::el7 | Package registry (OSV) |
| rocky linux:delve | 0:1.5.0-2.module+el8.4.0+396+d2d16ae3 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:go-toolset | 0:1.15.14-1.module+el8.4.0+632+4dba2916 · Rocky Linux:8 | Package registry (OSV) |
| rocky linux:golang | 0:1.15.14-1.module+el8.4.0+632+4dba2916 · Rocky Linux:8 | Package registry (OSV) |
| suse:go1.15 | 1.15.12-1.30.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP2 | Package registry (OSV) |
| suse:go1.16 | 1.16.4-1.14.2 · SUSE:Linux Enterprise Module for Development Tools 15 SP2 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-21-0985 · Dec 10, 2021(RedHat Güvenlik Güncellemesi)
- TR-21-0896 · Nov 8, 2021(RedHat Güvenlik Güncellemesi)
- TR-21-0701 · Sep 3, 2021(IBM Güvenlik Bülteni Yayınladı)
- TR-21-0661 · Aug 19, 2021(RedHat Güvenlik Güncellemesi Yayınladı)
- TR-21-0634 · Aug 12, 2021(RedHat Güvenlik Güncellemesi Yayınladı)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-674 · Uncontrolled RecursionCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (3 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.