CVE-2021-31525
Aliases:GHSA-h86h-8ppg-mxmhBIT-golang-2021-31525GO-2022-0236
Advisory lineage Upstream: 0 Downstream: 18
Modified
Published: 27 May 2021, 12:17
Last modified:03 Aug 2024, 23:03
Vulnerability Summary
Overall Risk (default)
low
24/100 CVSS Score
5.9 MEDIUM
v3.1 (nvd)
EPSS Score
0.02% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
27 May 2021, 12:17
Published
Vulnerability first disclosed
03 Aug 2024, 23:03
Last Modified
Vulnerability information updated
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: 0.02%• Percentile: 6%
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
- 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 (11)
- 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