Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/net/http/httpguts
  4. ›
  5. CVE-2021-31525

CVE-2021-31525: Uncontrolled Recursion

May 24, 2022 (updated February 8, 2023)

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.

References

  • github.com/advisories/GHSA-h86h-8ppg-mxmh
  • github.com/golang/go/issues/45710
  • go.dev/cl/313069
  • go.dev/issue/45710
  • go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9
  • groups.google.com/g/golang-announce/c/cu9SP4eSXMc
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/
  • nvd.nist.gov/vuln/detail/CVE-2021-31525
  • pkg.go.dev/vuln/GO-2022-0236
  • security.gentoo.org/glsa/202208-02

Code Behaviors & Features

Detect and mitigate CVE-2021-31525 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.0-20210428140749-89ef3d95e781

Fixed versions

  • 0.0.0-20210428140749-89ef3d95e781

Solution

Upgrade to version 0.0.0-20210428140749-89ef3d95e781 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

go/golang.org/x/net/http/httpguts/CVE-2021-31525.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.