CVE-2023-24534

published 6 Apr 2023 · updated 12 Nov 2026

Excessive memory allocation in net/http and net/textproto

7.5HighCVSS 7.5EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 1.19.8 and 1.20.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.19.8, >=1.20.0-0 <1.20.31.19.8, 1.20.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-24534 severity on Zeptric[![CVE-2023-24534](https://zeptric.io/badge/cve/CVE-2023-24534.svg)](https://zeptric.io/cve/CVE-2023-24534)