Lucene search

K
cvelistGoCVELIST:CVE-2023-45290
HistoryMar 05, 2024 - 10:22 p.m.

CVE-2023-45290 Memory exhaustion in multipart form parsing in net/textproto and net/http

2024-03-0522:22:28
Go
raw.githubusercontent.com
3
cve-2023-45290
memory exhaustion
multipart form parsing
net/textproto
net/http
request.parsemultipartform
request.formvalue
request.postformvalue
request.formfile

6.1 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.0%

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.