{"id":"CVE-2025-61772","published":"2025-10-07T15:02:09Z","modified":"2025-10-07T17:51:26Z","title":"Rack's multipart parser buffers unbounded per-part headers, enabling DoS (memory exhaustion)","vendor":"rack","product":"rack","tier":"tail","description":{"text":"Rack is a modular Ruby web server interface. In versions prior to 2.2.19, 3.1.17, and 3.2.2, `Rack::Multipart::Parser` can accumulate unbounded data when a multipart part’s header block never terminates with the required blank line (`CRLFCRLF`). The parser keeps appending incoming bytes to memory without a size cap, allowing a remote attacker to exhaust memory and cause a denial of service (DoS). Attackers can send incomplete multipart headers to trigger high memory use, leading to process termination (OOM) or severe slowdown. The effect scales with request size limits and concurrency. All applications handling multipart uploads may be affected. Versions 2.2.19, 3.1.17, and 3.2.2 cap per-part header size (e.g., 64 KiB). As a workaround, restrict maximum request sizes at the proxy or web server layer (e.g., Nginx `client_max_body_size`).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00976,"percentile":0.62966,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-wpv5-97wm-hp9c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e","tags":["x_refsource_MISC"]},{"url":"https://github.com/rack/rack/commit/e08f78c656c9394d6737c022bde087e0f33336fd","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":12.59},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":["< 2.2.19",">= 3.1, < 3.1.17",">= 3.2, < 3.2.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-07T17:51:19.811672Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":["<2.2.19",">=3.1, <3.1.17",">=3.2, <3.2.2"],"patched":["2.2.19","3.1.17","3.2.2"],"from":["GHSA-wpv5-97wm-hp9c"],"provenance":"source"}],"summary":{"text":"Rack's multipart parser, Rack::Multipart::Parser in the Rack Ruby web server interface, fails to cap the size of per-part header blocks, so it keeps accumulating incoming bytes in memory when a part's header block never ends with the required blank line. A remote attacker with network access can exploit this without authentication or user interaction by sending incomplete multipart headers to any application handling multipart uploads, causing memory exhaustion that leads to process termination or severe slowdown; the effect scales with request size limits and concurrency.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:37Z"},"euvd":{"id":"EUVD-2025-32055","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-59830","published":"2025-09-25","fixed":"2.2.18","kev":false,"link":{"from":"CVE-2025-59830","to":"CVE-2025-61772","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.18","toFixed":"2.2.19","daysApart":12}]}},{"cve":"CVE-2025-49007","published":"2025-06-04","fixed":"3.1.16","kev":false,"link":{"from":"CVE-2025-49007","to":"CVE-2025-61772","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.16","toFixed":"3.1.17","daysApart":125},{"kind":"same-code","provenance":"machine","files":["lib/rack/multipart/parser.rb"],"commits":["https://github.com/rack/rack/commit/4795831a0a310c2d31102749e551b38faab6401f","https://github.com/rack/rack/commit/aed514df37e33907df3c971ed3ca9a0a20ac2901","https://github.com/rack/rack/commit/589127f4ac8b5cf11cf88fb0cd116ffed4d2181e","https://github.com/rack/rack/commit/d869fed663b113b95a74ad53e1b5cae6ab31f29e"],"basis":"shared file"}]}},{"cve":"CVE-2025-61770","published":"2025-10-07","fixed":"3.2.2","kev":false},{"cve":"CVE-2025-61771","published":"2025-10-07","fixed":"3.2.2","kev":false},{"cve":"CVE-2025-61772","published":"2025-10-07","fixed":"3.2.2","kev":false},{"cve":"CVE-2025-61780","published":"2025-10-10","fixed":"3.2.3","kev":false,"link":{"from":"CVE-2025-61772","to":"CVE-2025-61780","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.19","toFixed":"2.2.20","daysApart":3},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.17","toFixed":"3.1.18","daysApart":3}]}},{"cve":"CVE-2025-61919","published":"2025-10-10","fixed":"3.2.3","kev":false,"link":{"from":"CVE-2025-61772","to":"CVE-2025-61919","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.19","toFixed":"2.2.20","daysApart":3},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.17","toFixed":"3.1.18","daysApart":3}]}},{"cve":"CVE-2026-22860","published":"2026-02-18","fixed":"3.2.5","kev":false}],"package":"RubyGems:rack"}}