Multipart form body parser bypasses body size limits in wisp
Allocation of Resources Without Limits or Throttling vulnerability in gleam-wisp wisp allows a denial of service via multipart form body parsing. The 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. An unauthenticated attacker can exhaust server memory or disk by sending arbitrarily large multipart form submissions in a single HTTP request. This issue affects wisp: from 0.2.0 before 2.2.2.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-32145
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 12:09 UTC · Revision 1
Source evidence
Multipart form body parser bypasses body size limits in wisp
core-osv · Original sourcePublished 2 Apr 2026, 10:30 UTC
Allocation of Resources Without Limits or Throttling vulnerability in gleam-wisp wisp allows a denial of service via multipart form body parsing. The 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. An unauthenticated attacker can exhaust server memory or disk by sending arbitrarily large multipart form submissions in a single HTTP request. This issue affects wisp: from 0.2.0 before 2.2.2.
osv:CVE-2026-32145
Complete source record
{
"id": "b717fc41968976228ab637a88d9e57f3dc0317e298d7fe697260d6adf1516d67",
"url": "https://osv.dev/vulnerability/CVE-2026-32145",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Multipart form body parser bypasses body size limits in wisp",
"summary": "Allocation of Resources Without Limits or Throttling vulnerability in gleam-wisp wisp allows a denial of service via multipart form body parsing. The 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. An unauthenticated attacker can exhaust server memory or disk by sending arbitrarily large multipart form submissions in a single HTTP request. This issue affects wisp: from 0.2.0 before 2.2.2.",
"evidence": "osv:CVE-2026-32145",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-32145",
"aliases": [
"CVE-2026-32145",
"EEF-CVE-2026-32145",
"GHSA-8645-p2v4-73r2"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gleam-wisp/wisp",
"type": "GIT",
"events": [
{
"introduced": "b327d2339ecaa41f2f7a754cf3e257b487a09793"
},
{
"fixed": "a2ca0d042d3607eedb26a8ca34bae054c704f515"
},
{
"fixed": "7a978748e12ab29db232c222254465890e1a4a90"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gleam-wisp:wisp:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.2.0"
},
{
"fixed": "2.2.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "7a978748e12ab29db232c222254465890e1a4a90"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
},
{
"repo": "https://github.com/gleam-wisp/wisp.git",
"type": "GIT",
"events": [
{
"introduced": "d8e722e22ccb42bda9d0b6248658d37ab4e9b376"
},
{
"fixed": "7a978748e12ab29db232c222254465890e1a4a90"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "d8e722e22ccb42bda9d0b6248658d37ab4e9b376"
},
{
"fixed": "7a978748e12ab29db232c222254465890e1a4a90"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"v2.2.1",
"v2.2.0",
"v2.1.1",
"v2.1.0",
"v2.0.1",
"v2.0.0",
"v2.0.0-rc1",
"v1.8.0",
"v1.7.0",
"v1.6.0",
"v1.5.3",
"v1.5.2",
"v1.5.1",
"v1.4.0",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v0.16.0",
"v0.15.0",
"v0.14.0",
"v0.13.0",
"v0.12.0",
"v0.11.0",
"v0.10.0",
"v0.9.0",
"v0.8.0",
"v0.7.0",
"v0.6.0",
"v0.5.0",
"v0.4.0",
"v0.3.0",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-32145.json"
}
}
],
"modified": "2026-10-28T02:30:28.546775276Z",
"provider": "osv",
"references": [
"https://cna.erlef.org/cves/CVE-2026-32145.html",
"https://github.com",
"https://osv.dev/vulnerability/EEF-CVE-2026-32145",
"https://repo.hex.pm",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32145.json",
"https://github.com/gleam-wisp/wisp/security/advisories/GHSA-8645-p2v4-73r2",
"https://nvd.nist.gov/vuln/detail/CVE-2026-32145",
"https://github.com/gleam-wisp/wisp/commit/7a978748e12ab29db232c222254465890e1a4a90",
"https://github.com/gleam-wisp/wisp",
"https://github.com/gleam-wisp/wisp.git"
],
"provider_metadata": {
"cwe_ids": [
"CWE-770"
],
"cna_assigner": "EEF",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32145.json"
}
},
"related_cves": [
{
"value": "CVE-2026-32145",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 495250,
"published_at": "2026-04-02T10:30:47.485+00:00"
}