Excessive resource consumption in net/http, net/textproto and mime/multipart
CVE-2023-24536

7.5HIGH

Key Information:

Vendor
CVE Published:
6 April 2023

What is CVE-2023-24536?

The multipart form parsing in Go's mime/multipart package can allow an attacker to exploit excessive CPU and memory consumption through malformed multipart forms. Specifically, the ReadForm method may inadvertently accept larger inputs than intended, causing significant resource strain. Factors contributing to this risk include inaccurate memory accounting, inadequate garbage collection handling for numerous small allocations, and the potential for the allocation of numerous short-lived buffers. Such conditions could lead to a denial of service in applications utilizing this functionality. Recent fixes improve memory consumption estimates and impose stricter limits on the number of parts and headers within multipart forms, enhancing stability and security.

Affected Version(s)

mime/multipart 0 < 1.19.8

mime/multipart 1.20.0-0 < 1.20.3

net/textproto 0 < 1.19.8

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

Jakob Ackermann (@das7pad)
.