PT-2024-2138 · Go+11 · Go+11
Bartek Nowotarski
·
Published
2024-03-05
·
Updated
2025-06-27
·
CVE-2023-45290
CVSS v2.0
7.8
High
| Vector | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Go versions prior to the fixed version
Description
The issue is related to parsing multipart forms, where limits on the total size of the parsed form were not applied to the memory consumed while reading a single form line. This allows a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion. The
ParseMultipartForm function now correctly limits the maximum size of form lines with the fix.Recommendations
For Go versions prior to the fixed version, consider updating to a version that includes the fix for the
ParseMultipartForm function to correctly limit the maximum size of form lines. As a temporary workaround, consider restricting the use of the Request.ParseMultipartForm, Request.FormValue, Request.PostFormValue, or Request.FormFile functions to minimize the risk of exploitation. Avoid using these functions with untrusted input until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability, but updating to the latest version may help mitigate the risk.Fix
DoS
Allocation of Resources Without Limits
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Debian
Go
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu