CVE-2021-31525golang.org/x/net/http/httpguts vulnerable to Uncontrolled Recursion
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 3.7% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 3.7%
- percentile 91%
- Fix
- Named by a source
- CVE published 27 May 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 3.7% (+4) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- golang.org/x/net (Go): upgrade to 0.0.0-20210428140749-89ef3d95e781 or later on your release line.
- stdlib (Go): upgrade to 1.15.12 / 1.16.4 or later on your release line.
- Patch: https://go.dev/cl/313069
- Patch: https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9
Who should check
golang.org/x/net (Go) pkg:golang/golang.org/x/net
- Affected< 0.0.0-20210428140749-89ef3d95e781Fixed in0.0.0-20210428140749-89ef3d95e781OSV (GO-2022-0236)
stdlib (Go) pkg:golang/stdlib
- Affected< 1.15.12Fixed in1.15.12OSV (GO-2022-0236)
- Affected>= 1.16.0-0, < 1.16.4Fixed in1.16.4OSV (GO-2022-0236)
Confirmed facts
- CVSS
- 5.9 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-h86h-8ppg-mxmh)
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-674
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)golang.org/x/net/http/httpguts 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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-31525
- otherhttps://github.com/golang/go/issues/45710
- otherhttps://github.com/golang/go
- patchhttps://go.dev/cl/313069
- otherhttps://go.dev/issue/45710
- patchhttps://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9
- otherhttps://groups.google.com/g/golang-announce/c/cu9SP4eSXMc
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF
- otherhttps://pkg.go.dev/vuln/GO-2022-0236
- otherhttps://security.gentoo.org/glsa/202208-02
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-h86h-8ppg-mxmh (GitHub Advisory Database), CC BY 4.0.
- GO-2022-0236 (Go Vulnerability Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 40 min ago · osv 40 min ago · nvd 9 min ago · epss 39 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-golang-2021-31525, GHSA-h86h-8ppg-mxmh, GO-2022-0236