Vulnerability Report: GO-2023-1704
- CVE-2023-24534
- Affects: net/textproto
- Published: Apr 05, 2023
- Modified: May 20, 2024
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 Packages
-
PathVersionsSymbols
-
before go1.19.8, from go1.20.0-0 before go1.20.3
Aliases
References
- https://go.dev/issue/58975
- https://go.dev/cl/481994
- https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8
- https://vuln.go.dev/ID/GO-2023-1704.json
Credits
- Jakob Ackermann (@das7pad)
Feedback
See anything missing or incorrect?
Suggest an edit to this report.