CVE-2021-31525
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| golang.org/x/net | Go Modules | 0.0.0-20210428140749-89ef3d95e781 |
| stdlib | Go Modules | 1.16.4, 1.15.12 |
| golang.org/x/net/http/httpguts | Go Modules | 0.0.0-20210428140749-89ef3d95e781 |
| golang-src | Amazon Linux | 1.15.12-1.amzn2.0.1 |
| golang-race | Amazon Linux | 1.15.12-1.amzn2.0.1 |
| go | Arch Linux | 2:1.16.4-1 |
| golang-tests | Amazon Linux | 1.15.12-1.amzn2.0.1 |
| terraform-provider-sendgrid-fips | Chainguard | 1.0.1-r1 |
| golang-bin | Amazon Linux | 1.15.12-1.amzn2.0.1 |
| golang | Amazon Linux | 1.15.12-1.amzn2.0.1 |
| grpcurl | Chainguard | 1.8.7-r7 |
| hey | Chainguard | 0.1.4-r3 |
11 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | golang-src | 0 |
| amazon:2 | golang-race | 0 |
| arch | go | 0 |
| amazon:2 | golang-tests | 0 |
| chainguard | terraform-provider-sendgrid-fips | 0 |
| golang.org | x/net | 0 |
| amazon:2 | golang-bin | 0 |
| amazon:2 | golang | 0 |
| chainguard | grpcurl | 0 |
| chainguard | hey | 0 |
| amazon:2 | golang-misc | 0 |
| chainguard | terraform-provider-sendgrid | 0 |
| wolfi | grpcurl | 0 |
| alpine | go | 0, 0 |
| chainguard | k3d | 0 |
| golang | go | |
| amazon:2 | golang-docs | 0 |
| wolfi | hey | 0 |
…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
References
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-ee3c072cd0 vendor-advisoryx_refsource_FEDORA
- GLSA-202208-02 vendor-advisoryx_refsource_GENTOO
- https://nvd.nist.gov/vuln/detail/CVE-2021-31525 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/ url
- https://go.dev/cl/313069 url
- https://go.dev/issue/45710 url
- https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9 url
- https://pkg.go.dev/vuln/GO-2022-0236 url
- https://github.com/advisories/GHSA-h86h-8ppg-mxmh advisory