Resource exhaustion in Go Standard Library Net/textproto

CVE-2023-45290

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.

EPSS: 0.012 (64.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2023-45290?
CVE-2023-45290 is a medium-severity vulnerability in Go Standard Library Net/textproto, classified under Allocation of Resources Without Limits or Throttling. CVSS score: 6.5/10. Published 2024-03-05.
How severe is CVE-2023-45290?
Medium severity. CVSS v3 base score is 6.5 out of 10.
Is CVE-2023-45290 known to be exploited?
4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.