VDB

CVE-2021-31525

CVE-2021-31525 PUBLISHED CVSS 5.900000095367432 MEDIUM

golang.org/x/net/http/httpguts vulnerable to Uncontrolled Recursion

Reported by mitre · Published May 27, 2021

golang.org/x/net is fixed in 0.0.0-20210428140749-89ef3d95e781 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
golang.org/x/netGo Modules0.0.0-20210428140749-89ef3d95e781
stdlibGo Modules1.16.4, 1.15.12
golang.org/x/net/http/httpgutsGo Modules0.0.0-20210428140749-89ef3d95e781
golang-srcAmazon Linux1.15.12-1.amzn2.0.1
golang-raceAmazon Linux1.15.12-1.amzn2.0.1
goArch Linux2:1.16.4-1
golang-testsAmazon Linux1.15.12-1.amzn2.0.1
terraform-provider-sendgrid-fipsChainguard1.0.1-r1
golang-binAmazon Linux1.15.12-1.amzn2.0.1
golangAmazon Linux1.15.12-1.amzn2.0.1
grpcurlChainguard1.8.7-r7
heyChainguard0.1.4-r3

11 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.900000095367432
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2golang-src0
amazon:2golang-race0
archgo0
amazon:2golang-tests0
chainguardterraform-provider-sendgrid-fips0
golang.orgx/net0
amazon:2golang-bin0
amazon:2golang0
chainguardgrpcurl0
chainguardhey0
amazon:2golang-misc0
chainguardterraform-provider-sendgrid0
wolfigrpcurl0
alpinego0, 0
chainguardk3d0
golanggo
amazon:2golang-docs0
wolfihey0

…and 4 more

Timeline

  • May 27, 2021 CVE Published
  • May 28, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 18, 2026 Security Advisory (4 in total, the first dated here)
  • Aug 2, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-31525
vulnetix vdb fixes CVE-2021-31525

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-31525/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›