Advisory

GO-2023-1704

Also known as: BIT-golang-2023-24534, CVE-2023-24534

Summary

Excessive memory allocation in net/http and net/textproto

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-04-05 21:04 UTC
Modified
2026-02-04 04:39 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.19.8, introduced 1.20.0-0, fixed 1.20.3 (semver)

Fixed versions

1.19.8, 1.20.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences