CVE Database
/

CVE-2023-45290

Back to search

CVE-2023-45290

Published: Mar 5, 2024

Modified: Feb 13, 2025

PUBLISHED

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.

VendorProductVersions

Go standard library

net/textproto

affected
0 - < 1.21.8
affected
1.22.0-0 - < 1.22.1

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now