Live threats

All CVEs / Go standard library

CVE-2023-45290Go standard library net/textproto

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
Yes
Published
Mar 5, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-770
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for net/textproto.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.21.8 1.21.8 go get stdlib@v1.21.8
Go stdlib ≥ 1.22.0-0 < 1.22.1 1.22.1 go get stdlib@v1.22.1

Per OSV / GitHub Advisories (GO-2024-2599). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.