CVE-2021-31525

golang: net/http: panic in ReadRequest and ReadResponse when reading a very large header

Published May 27, 2021 CVSS 3.1 · 5.9 Medium EPSS 3.7% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-4104 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.
Github GHSA Github GHSA GHSA-h86h-8ppg-mxmh golang.org/x/net/http/httpguts vulnerable to Uncontrolled Recursion
History

No history.

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-20

    Improper Input Validation

  • CWE-674

    Uncontrolled Recursion

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 11:03 PM
Reserved
Apr 21, 2021, 12:00 AM
Status
Modified
Published
May 27, 2021, 1:15 PM
Modified
Jun 17, 2026, 3:51 AM
Severity
Moderate
Public date
Apr 22, 2021, 12:00 AM