CVE-2023-24534
JSON

7.5high

Excessive memory allocation in net/http and net/textproto

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
2.00% (higher than 81% of CVEs)
Published
Last changed
Assigned by
Go
Also known as
GO-2023-1704BIT-GOLANG-2023-24534

Description

HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service. Certain unusual patterns of input data can cause the common function used to parse HTTP and MIME headers to allocate substantially more memory than required to hold the parsed headers. An attacker can exploit this behavior to cause an HTTP server to allocate large amounts of memory from a small request, potentially leading to memory exhaustion and a denial of service. With fix, header parsing now correctly allocates only the memory required to hold parsed headers.

Affected

Product or packageVersionsReported by
net/textprotobefore 1.19.8, from 1.20.0-0 before 1.20.3CVE List
stdlib (Go)before 1.19.8, from 1.20.0-0 before 1.20.3Go Vulnerability Database
golang gobefore 1.19.8, from 1.20.0 before 1.20.3NVD
golang (Bitnami)before 1.19.8, from 1.20.0 before 1.20.3Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-400

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-24534 changed 2025-02-13CVE Terms of Use
Go Vulnerability DatabaseGO-2023-1704 changed 2026-02-04CC-BY-4.0
NVDCVE-2023-24534 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2023-24534 changed 2026-09-08Apache-2.0