Security mailing lists by PureSourceCode

CVE-2021-31525

MEDIUM 5.9CVSS 3.1

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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.15.12 1.15.12
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
>= 1.16.0, < 1.16.4 1.16.4
NVD fedoraproject fedora
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.