stdlib
Affected
- introduced
0, fixed1.19.8, introduced1.20.0-0, fixed1.20.3(semver)
Fixed versions
1.19.8, 1.20.3
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: BIT-golang-2023-24536, CVE-2023-24536
Excessive resource consumption in net/http, net/textproto and mime/multipart
Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts.
This stems from several causes:
The combination of these factors can permit an attacker to cause an program that parses multipart forms to consume large amounts of CPU and memory, potentially resulting in a denial of service. This affects programs that use mime/multipart.Reader.ReadForm, as well as form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue.
With fix, ReadForm now does a better job of estimating the memory consumption of parsed forms, and performs many fewer short-lived allocations.
In addition, the fixed mime/multipart.Reader imposes the following limits on the size of parsed forms:
Not rated by the source.
0, fixed 1.19.8, introduced 1.20.0-0, fixed 1.20.3 (semver)1.19.8, 1.20.3
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: Go Vulnerability Database · CC BY 4.0