CVE-2023-45290: Go Standard Library Net/textproto

Medium severity, CVSS 6.5. EPSS: 1.4% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Go Standard Library Net/textproto, before 1.21.8: fixed in 1.21.8
  • Go Standard Library Net/textproto, from 1.22.0-0, before 1.22.1: fixed in 1.22.1

Affected products

Affected packages

Published 2024-03-05. Last modified 2026-06-17.