CVE-2023-24534
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 package | Versions | Reported by |
|---|---|---|
| net/textproto | before 1.19.8, from 1.20.0-0 before 1.20.3 | CVE List |
| stdlib (Go) | before 1.19.8, from 1.20.0-0 before 1.20.3 | Go Vulnerability Database |
| golang go | before 1.19.8, from 1.20.0 before 1.20.3 | NVD |
| golang (Bitnami) | before 1.19.8, from 1.20.0 before 1.20.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
| https://go.dev/issue/58975 | advisory, issue-tracking, report, vendor-advisory | |
| https://go.dev/cl/481994 | advisory, fix, patch, vendor-advisory | |
| https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8 | fix, mailing-list, patch, web | |
| https://pkg.go.dev/vuln/GO-2023-1704 | advisory, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20230526-0007/ | web | |
| https://security.gentoo.org/glsa/202311-09 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-24534 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-24534 changed 2025-02-13 | CVE Terms of Use |
| Go Vulnerability Database | GO-2023-1704 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-24534 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2023-24534 changed 2026-09-08 | Apache-2.0 |