CVE-2023-45290
Memory exhaustion in multipart form parsing in net/textproto and net/http
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.
How to fix CVE-2023-45290
To remediate CVE-2023-45290, upgrade the affected package to a fixed version below.
- —upgrade to 1.21.8 or later
- —no fix listed
- —no fix listed
- —upgrade to 1.21.8 or later
Is CVE-2023-45290 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, < 1.21.8, >= 1.22.0-0, < 1.22.1
- from 0
- from 0
- from 0, < 1.21.8, >= 1.22.0-0, < 1.22.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |