{"id":"CVE-2026-32145","published":"2026-04-02T10:30:47Z","modified":"2026-11-20T03:12:57Z","title":"Multipart form body parser bypasses body size limits in wisp","vendor":"gleam-wisp","product":"wisp","tier":"tail","description":{"text":"Allocation of Resources Without Limits or Throttling vulnerability in gleam-wisp wisp allows a denial of service via multipart form body parsing.\n\nThe multipart_body function bypasses configured max_body_size and max_files_size limits. When a multipart boundary is not present in a chunk, the parser takes the MoreRequiredForBody path, which appends the chunk to the output but passes the quota unchanged to the recursive call. Only the final chunk containing the boundary is counted via decrement_quota. The same pattern exists in multipart_headers, where MoreRequiredForHeaders recurses without calling decrement_body_quota.\n\nAn unauthenticated attacker can exhaust server memory or disk by sending arbitrarily large multipart form submissions in a single HTTP request.\n\nThis issue affects wisp: from 0.2.0 before 2.2.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00684,"percentile":0.53477,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/gleam-wisp/wisp/security/advisories/GHSA-8645-p2v4-73r2","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-32145.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-32145","tags":["related"]},{"url":"https://github.com/gleam-wisp/wisp/commit/d8e722e22ccb42bda9d0b6248658d37ab4e9b376","tags":["related"]},{"url":"https://github.com/gleam-wisp/wisp/commit/494476767cb29b905f364f07838d3c164a3c0571","tags":["patch"]},{"url":"https://github.com/gleam-wisp/wisp/commit/7a978748e12ab29db232c222254465890e1a4a90","tags":["patch"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":10.7},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"gleam-wisp","affectedVersions":[{"vendor":"gleam-wisp","product":"wisp","versions":[">= 0.2.0, < 2.2.2"]},{"vendor":"gleam-wisp","product":"wisp","versions":[">= d8e722e22ccb42bda9d0b6248658d37ab4e9b376"]}],"fixedVersions":[{"vendor":"gleam-wisp","product":"wisp","versions":["494476767cb29b905f364f07838d3c164a3c0571","7a978748e12ab29db232c222254465890e1a4a90"]}],"workarounds":{"items":["Deploy a reverse proxy (such as nginx or HAProxy) in front of the wisp application and configure it to enforce request body size limits."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-02T13:29:06.824466Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"wisp","vulnerableRanges":["<2.2.2"],"patched":["2.2.2"],"from":["GHSA-8645-p2v4-73r2"],"provenance":"source"}],"summary":{"text":"The multipart form body parser in wisp, a web framework from gleam-wisp, bypasses the configured max_body_size and max_files_size limits: the multipart_body and multipart_headers functions fail to decrement the quota for chunks that do not yet contain the boundary, so only the final chunk is counted. An unauthenticated remote attacker who can reach the application can exhaust server memory or disk by sending a single HTTP request with an arbitrarily large multipart form submission, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:53Z"},"euvd":{"id":"EUVD-2026-18186","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gleam-wisp-wisp-cve-2026-28807","parents":[{"from":"CVE-2026-28807","to":"CVE-2026-32145","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:wisp","fromFixed":"2.2.1","toFixed":"2.2.2","daysApart":23},{"kind":"same-code","provenance":"machine","files":["src/wisp.gleam"],"commits":["https://github.com/gleam-wisp/wisp/commit/129dcb1fe10ab1e676145d91477535e1c90ab550","https://github.com/gleam-wisp/wisp/commit/161118c431047f7ef1ff7cabfcc38981877fdd93","https://github.com/gleam-wisp/wisp/commit/d8e722e22ccb42bda9d0b6248658d37ab4e9b376","https://github.com/gleam-wisp/wisp/commit/494476767cb29b905f364f07838d3c164a3c0571"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.32,"basis":"same product + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-28807","published":"2026-03-10","fixed":"2.2.1","kev":false},{"cve":"CVE-2026-32145","published":"2026-04-02","fixed":"2.2.2","kev":false}],"package":"Hex:wisp"}}