# CVE-2021-31525: golang.org/x/net/http/httpguts vulnerable to Uncontrolled Recursion

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.69%, higher than 90% of CVEs (2026-12-01)
- Published: 2021-05-27T12:17:11.000Z
- Modified: 2026-09-10T03:49:23.210Z
- Also known as: GHSA-h86h-8ppg-mxmh, BIT-GOLANG-2021-31525, GO-2022-0236
- Related: CGA-gp75-g599-6fr2
- Weaknesses: CWE-674
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- golang.org/x/net (Go): before 0.0.0-20210428140749-89ef3d95e781
- stdlib (Go): before 1.15.12; from 1.16.0-0 before 1.16.4
- golang go: before 1.15.12; from 1.16.0 before 1.16.4
- fedoraproject fedora: 34
- golang (Bitnami): before 1.15.12; from 1.16.0 before 1.16.4

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.6 Low `AV:N/AC:H/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc> (advisory, mailing-list, third-party-advisory, web)
- <https://github.com/golang/go/issues/45710> (advisory, issue-tracking, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/> (vendor-advisory, web)
- <https://security.gentoo.org/glsa/202208-02> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31525> (advisory, web)
- <https://github.com/golang/go> (package)
- <https://go.dev/cl/313069> (fix, web)
- <https://go.dev/issue/45710> (report, web)
- <https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9> (fix, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF> (web)
- <https://pkg.go.dev/vuln/GO-2022-0236> (web)

## Sources

- CVE List: [CVE-2021-31525](https://www.cve.org/CVERecord?id=CVE-2021-31525), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-h86h-8ppg-mxmh](https://github.com/advisories/GHSA-h86h-8ppg-mxmh), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0236](https://pkg.go.dev/vuln/GO-2022-0236), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-31525](https://nvd.nist.gov/vuln/detail/CVE-2021-31525), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2021-31525](https://osv.dev/vulnerability/BIT-GOLANG-2021-31525), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-31525 · Whole record: https://cve.day/CVE-2021-31525.json · Rebuilt by cve.day 2026-11-25T22:58:01.569Z
