{"id":"CVE-2023-45290","published":"2024-03-05T22:22:28Z","modified":"2025-02-13T17:14:02Z","title":"Memory exhaustion in multipart form parsing in net/textproto and net/http","vendor":"Go standard library","product":"net/textproto","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01156,"percentile":0.67825,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://go.dev/issue/65383","tags":[]},{"url":"https://go.dev/cl/569341","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2024-2599","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240329-0004/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/08/4","tags":[]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":13.57},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"net/textproto","versions":["< 1.21.8",">= 1.22.0-0, < 1.22.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-06T15:04:15.773941Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.21.8",">=1.22.0-0, <1.22.1"],"patched":["1.21.8","1.22.1"],"from":["GO-2024-2599"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-49589","exploited":false,"provenance":"source"}}