CVE-2023-45290

Memory exhaustion in multipart form parsing in net/textproto and net/http

Medium · published March 5, 2024

CVSS v3.1
6.5
EPSS
1%
Percentile
67.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.01165 · 67.0th percentile
Published
2024-03-05T22:22Z
EPSS history
Timeline
  • 05 MAR 22:22Z
    Memory exhaustion in multipart form parsing in net/textproto and net/http
    cvelistv5