CVE-2023-24534
Excessive memory allocation in net/http and net/textproto
Reported by go · Published April 6, 2023
net/textproto is fixed in 1.20.3 and 1.19.8 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| net/textproto | Go Modules | 1.20.3, 1.19.8 |
| stdlib | Go Modules | 1.20.3, 1.19.8 |
| go | Alpine | 1.20.3-r0, 1.19.8-r0 |
| golang-src | Amazon Linux | 1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.4 |
| golang-bin | Amazon Linux | 1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.4 |
| kubeflow-katib | Wolfi | 0.19.0-r40, 0.19.0-r31 |
| falco | Wolfi | 0.37.1-r0 |
| falco | Chainguard | 0.37.1-r0 |
| golang-shared | Amazon Linux | 1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.4 |
| golang-race | Amazon Linux | 1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.4 |
| go-1.19 | Chainguard | 1.19.8-r0 |
| golang-tests | Amazon Linux | 1.19.8-1.amzn2023.0.1, 1.18.9-1.amzn2.0.4 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | net/textproto | 0, 1.20.0-0 |
| alpine | go | 0, 0 |
| amazon:2 | golang-src | 0 |
| amazon:2 | golang-bin | 0 |
| wolfi | kubeflow-katib | 0, 0 |
| wolfi | falco | 0 |
| chainguard | falco | 0 |
| amazon:2 | golang-shared | 0 |
| amazon:2023 | golang-race | 0 |
| Go | stdlib | |
| chainguard | go-1.19 | 0 |
| amazon:2 | golang-race | 0 |
| amazon:2 | golang-tests | 0 |
| amazon:2 | golang | 0 |
| amazon:2023 | golang-bin | 0 |
| amazon:2023 | golang | 0 |
| Go standard library | net/textproto | 1.20.0-0, 0 |
| alpine | nomad | 0, 0 |
| amazon:2023 | golang-shared | 0 |
| amazon:2023 | golang-tests | 0 |
…and 12 more
Timeline
- Apr 5, 2023 CVE Published
- Apr 7, 2023 EPSS Score (30 in total, the first dated here)
- Feb 12, 2025 CVE Updated
- Feb 20, 2026 Security Advisory (58 in total, the first dated here)
- Mar 21, 2026 Distribution Patch (55 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-24534
vulnetix vdb fixes CVE-2023-24534
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-24534/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart