Skip to content
Noroxi
NVD / CVE Program· CNA mitre

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…

MediumCVSS 5.9 · v3.1—No exploit Fix available

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.

Published
May 27, 2021
Updated
Jun 16, 2026
EPSS
3.6% · 89th percentile

Report tools

JSON

Action score

24

Monitor

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.

Follow CVE-2021-31525

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi 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 help

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

VendorProduct
golanggo
fedoraprojectfedora

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.

EcosystemPackageAffected rangeFix
Alpine:v3.13gofrom 1.16.0 · before 1.15.12-r01.15.12-r0
Alpine:v3.14gofrom 1.16.0 · before 1.16.4-r01.16.4-r0
Debian:12golang-golang-x-netbefore 1:0.0+git20210119.5f4716e+dfsg-31:0.0+git20210119.5f4716e+dfsg-3
Gogolang.org/x/netbefore 0.0.0-20210428140749-89ef3d95e7810.0.0-20210428140749-89ef3d95e781
Gostdlibfrom 1.16.0-0 · before 1.16.41.16.4
Gostdlibbefore 1.15.121.15.12
openSUSE:Leap 15.2go1.15before 1.15.12-lp152.17.11.15.12-lp152.17.1
openSUSE:Tumbleweedgo1.15before 1.15.15-1.21.15.15-1.2
openSUSE:Tumbleweedgo1.16before 1.16.8-1.11.16.8-1.1
Red Hat:container_native_virtualization:4.9::el7kubevirtbefore 0:4.9.0-287.el70:4.9.0-287.el7
Red Hat:container_native_virtualization:4.9::el7kubevirt-virtctlbefore 0:4.9.0-287.el70:4.9.0-287.el7
Red Hat:container_native_virtualization:4.9::el7kubevirt-virtctl-redistributablebefore 0:4.9.0-287.el70:4.9.0-287.el7
Red Hat:container_native_virtualization:4.9::el8kubevirtbefore 0:4.9.0-287.el80:4.9.0-287.el8
Red Hat:container_native_virtualization:4.9::el8kubevirt-virtctlbefore 0:4.9.0-287.el80:4.9.0-287.el8
Red Hat:container_native_virtualization:4.9::el8kubevirt-virtctl-redistributablebefore 0:4.9.0-287.el80:4.9.0-287.el8
Red Hat:enterprise_linux:8::appstreamdelvebefore 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb0:1.5.0-2.module+el8.4.0+8864+58b0fcdb
Red Hat:enterprise_linux:8::appstreamdelve-debuginfobefore 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb0:1.5.0-2.module+el8.4.0+8864+58b0fcdb
Red Hat:enterprise_linux:8::appstreamdelve-debugsourcebefore 0:1.5.0-2.module+el8.4.0+8864+58b0fcdb0:1.5.0-2.module+el8.4.0+8864+58b0fcdb
Red Hat:enterprise_linux:8::appstreamgo-toolsetbefore 0:1.15.14-1.module+el8.4.0+11833+614b07b80:1.15.14-1.module+el8.4.0+11833+614b07b8
Red Hat:enterprise_linux:8::appstreamgolangbefore 0:1.15.14-1.module+el8.4.0+11833+614b07b80:1.15.14-1.module+el8.4.0+11833+614b07b8
Red Hat:enterprise_linux:8::appstreamgolang-binbefore 0:1.15.14-1.module+el8.4.0+11833+614b07b80:1.15.14-1.module+el8.4.0+11833+614b07b8
Red Hat:enterprise_linux:8::appstreamgolang-docsbefore 0:1.15.14-1.module+el8.4.0+11833+614b07b80:1.15.14-1.module+el8.4.0+11833+614b07b8
Red Hat:enterprise_linux:8::appstreamgolang-miscbefore 0:1.15.14-1.module+el8.4.0+11833+614b07b80:1.15.14-1.module+el8.4.0+11833+614b07b8
Red Hat:enterprise_linux:8::appstreamgolang-racebefore 0:1.15.14-1.module+el8.4.0+11833+614b07b80:1.15.14-1.module+el8.4.0+11833+614b07b8

+60

Other 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 / packageFixed versionSource
alpine:go1.15.12-r0 · Alpine:v3.13Package registry (OSV)
debian:golang-golang-x-net1:0.0+git20210119.5f4716e+dfsg-3 · Debian:12Package registry (OSV)
Go:golang.org/x/net0.0.0-20210428140749-89ef3d95e781Package registry (OSV)
Go:stdlib1.15.12Package registry (OSV)
Go:stdlib1.16.4Package registry (OSV)
opensuse:go1.151.15.12-lp152.17.1 · openSUSE:Leap 15.2Package registry (OSV)
opensuse:go1.161.16.8-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:atomic-openshift-service-idler0:4.7.0-202107291238.p0.git.39cfc66.assembly.stream.el8 · Red Hat:openshift:4.7::el8Package registry (OSV)
red hat:cri-o0:1.20.4-7.rhaos4.7.git6287500.el7 · Red Hat:openshift:4.7::el7Package registry (OSV)
red hat:cri-o-debuginfo0:1.20.4-7.rhaos4.7.git6287500.el7 · Red Hat:openshift:4.7::el7Package registry (OSV)
red hat:ignition0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8Package registry (OSV)
red hat:ignition-debuginfo0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8Package registry (OSV)
red hat:ignition-debugsource0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8Package registry (OSV)
red hat:ignition-validate0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8Package registry (OSV)
red hat:ignition-validate-debuginfo0:2.9.0-4.rhaos4.7.git1d56dc8.el8 · Red Hat:openshift:4.7::el8Package registry (OSV)
red hat:openshift0:4.7.0-202107292242.p0.git.558d959.assembly.stream.el7 · Red Hat:openshift:4.7::el7Package registry (OSV)
red hat:openshift-clients0:4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el7 · Red Hat:openshift:4.7::el7Package registry (OSV)
red hat:openshift-clients-redistributable0:4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el7 · Red Hat:openshift:4.7::el7Package registry (OSV)
red hat:openshift-hyperkube0:4.7.0-202107292242.p0.git.558d959.assembly.stream.el7 · Red Hat:openshift:4.7::el7Package registry (OSV)
rocky linux:delve0:1.5.0-2.module+el8.4.0+396+d2d16ae3 · Rocky Linux:8Package registry (OSV)
rocky linux:go-toolset0:1.15.14-1.module+el8.4.0+632+4dba2916 · Rocky Linux:8Package registry (OSV)
rocky linux:golang0:1.15.14-1.module+el8.4.0+632+4dba2916 · Rocky Linux:8Package registry (OSV)
suse:go1.151.15.12-1.30.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP2Package registry (OSV)
suse:go1.161.16.4-1.14.2 · SUSE:Linux Enterprise Module for Development Tools 15 SP2Package 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.

All national notices →

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

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

References

All records