What’s Vulnerable › Vulnerabilities

CVE-2021-31525: Panic due to large headers in net/http and golang.org/x/net/http/httpguts

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.

Affected products

How to fix

Upgrade to a fixed version: Go 1.15.12, 1.16.4; Golang.Org/X/Net 0.0.0-20210428140749-89ef3d95e781; Go Stdlib 1.15.12, 1.16.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-31525 or the next vulnerability affects your stack