CVE-2023-45290

medium

Description

When parsing a multipart form (either explicitly with Request.ParseMultipartForm or implicitly with Request.FormValue, Request.PostFormValue, or Request.FormFile), limits on the total size of the parsed form were not applied to the memory consumed while reading a single form line. This permits a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion. With fix, the ParseMultipartForm function now correctly limits the maximum size of form lines.

References

https://security.netapp.com/advisory/ntap-20240329-0004/

https://pkg.go.dev/vuln/GO-2024-2599

https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg

https://go.dev/issue/65383

https://go.dev/cl/569341

http://www.openwall.com/lists/oss-security/2024/03/08/4

Details

Source: Mitre, NVD

Published: 2024-03-05

Updated: 2024-11-07

Risk Information

CVSS v2

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

Severity: High

CVSS v3

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium