Excessive resource consumption in mime/multipart
CVE-2022-41725

7.5HIGH

Key Information:

Vendor
CVE Published:
28 February 2023

What is CVE-2022-41725?

A vulnerability in Go's net/http and mime/multipart packages allows for a denial of service due to excessive resource consumption. The multipart form parsing, specifically with functions like mime/multipart.Reader.ReadForm, can result in unbounded memory and disk usage, particularly when processing overly large or maliciously crafted forms. This is exacerbated by the unconfigurable 10MB reserved for non-file parts, leading to potential service disruption. While the updated ReadForm function now better manages memory allocation and limits the creation of temporary disk files, users must remain vigilant about the overall resource usage when handling multipart forms, as no inherent limit exists on disk consumption.

Affected Version(s)

mime/multipart 0 < 1.19.6

mime/multipart 1.20.0-0 < 1.20.1

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Arpad Ryszka
Jakob Ackermann (@das7pad)
.