CVE-2021-31525
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•MEDIUM•Score: 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- v2.0•LOW•Score: 2.6AV:N/AC:H/Au:N/C:N/I:N/A:P
EPSS Trends
Current EPSS score: 3.69%• Percentile: 89%
Techniques & Countermeasures
- CWE-674•Uncontrolled Recursion
The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.
Affected Systems
- chainguard•grpcurl
< 1.8.7-r7
- chainguard•hey
< 0.1.4-r3
- chainguard•k3d
< 5.6.0-r11
- chainguard•k3d-proxy
< 5.6.0-r11
- chainguard•k3d-tools
< 5.6.0-r11
- chainguard•terraform-provider-sendgrid
< 1.0.1-r1
- chainguard•terraform-provider-sendgrid-fips
< 1.0.1-r1
- wolfi•grpcurl
< 1.8.7-r7
- wolfi•hey
< 0.1.4-r3
- wolfi•k3d
< 5.6.0-r11
- wolfi•k3d-proxy
< 5.6.0-r11
- wolfi•k3d-tools
< 5.6.0-r11
- wolfi•terraform-provider-sendgrid
< 1.0.1-r1
- debian•golang-1.15
< 1.15.9-2
- debian•golang-golang-x-net
< 1:0.0+git20210119.5f4716e+dfsg-3 | < 1:0.0+git20210119.5f4716e+dfsg-3 | < 1:0.0+git20210119.5f4716e+dfsg-3 | < 1:0.0+git20210119.5f4716e+dfsg-3
- fedoraproject•fedora
34
- golang•go
< 1.15.12 | ≥ 1.16.0, < 1.16.4
- golang.org/x•net
< 0.0.0-20210428140749-89ef3d95e781
- Go•stdlib
≥ 1.16.0-0, < 1.16.4
References (12)
- https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc
- https://github.com/golang/go/issues/45710
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/
- https://security.gentoo.org/glsa/202208-02
- https://nvd.nist.gov/vuln/detail/CVE-2021-31525
- https://github.com/golang/go
- https://go.dev/cl/313069
- https://go.dev/issue/45710
- https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF
- https://pkg.go.dev/vuln/GO-2022-0236
- https://security-tracker.debian.org/tracker/CVE-2021-31525