CVE-2021-31525
MEDIUM 5.9CVSS 3.1golang.org/x/net/http/httpguts vulnerable to Uncontrolled Recursion
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.
- Published
- 27 May 2021
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-674
- Also known as
- BIT-golang-2021-31525GHSA-h86h-8ppg-mxmhGO-2022-0236
- Sources
- NVDJSONOSV GHSA-h86h-8ppg-mxmhJSONOSV GO-2022-0236JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.6 | AV:N/AC:H/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.15.12 | 1.15.12 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.16.0, < 1.16.4 | 1.16.4 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| OSV | Go | golang.org/x/net | < 0.0.0-20210428140749-89ef3d95e781 | 0.0.0-20210428140749-89ef3d95e781 |
| OSV | Go | stdlib | < 1.15.12; >= 1.16.0-0, < 1.16.4 | 1.15.12, 1.16.4 |
References
- https://github.com/golang/go/issues/45710 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/
- https://security.gentoo.org/glsa/202208-02 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-31525 · ADVISORY
- https://github.com/golang/go · PACKAGE
- https://go.dev/cl/313069 · WEB, FIX
- https://go.dev/issue/45710 · WEB, REPORT
- https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9 · WEB, FIX
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF · WEB
- https://pkg.go.dev/vuln/GO-2022-0236 · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 May 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)