Description
The net/url package does not set a limit on the number of query parameters in a query. While the maximum size of query parameters in URLs is generally limited by the maximum request header size, the net/http.Request.ParseForm method can parse large URL-encoded forms. Parsing a large form containing many unique query parameters can cause excessive memory consumption.
Problem types
CWE-400: Uncontrolled Resource Consumption
Product status
Any version before 1.24.12
1.25.0 (semver) before 1.25.6
Credits
jub0bs
References
groups.google.com/g/golang-announce/c/Vd2tYVM8eUc