Allocation of Resources Without Limits or Throttling Affecting std/net/textproto package, versions <1.21.8>=1.22.0-0 <1.22.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.17% (64th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-STDNETTEXTPROTO-14552561
  • published6 Jan 2026
  • disclosed5 Mar 2024
  • creditBartek Nowotarski

Introduced: 5 Mar 2024

CVE-2023-45290  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade std/net/textproto to version 1.21.8, 1.22.1 or higher.

Overview

std/net/textproto is a Go standard library package std/net/textproto

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling.

Go Vulnerability Report:

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.

CVSS Base Scores

version 4.0
version 3.1