{"id":"CVE-2025-61770","published":"2025-10-07T14:30:04Z","modified":"2025-10-07T15:43:06Z","title":"Rack's unbounded multipart preamble buffering enables 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` buffers the entire multipart preamble (bytes before the first boundary) in memory without any size limit. A client can send a large preamble followed by a valid boundary, causing significant memory use and potential process termination due to out-of-memory (OOM) conditions. Remote attackers can trigger large transient memory spikes by including a long preamble in multipart/form-data requests. The impact scales with allowed request sizes and concurrency, potentially causing worker crashes or severe slowdown due to garbage collection. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a preamble size limit (e.g., 16 KiB) or discard preamble data entirely. Workarounds include limiting total request body size at the proxy or web server level and monitoring memory and set per-process limits to prevent OOM conditions.","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-p543-xpfm-54cp","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-07T15:23:07.044511Z","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-p543-xpfm-54cp"],"provenance":"source"}],"summary":{"text":"The Rack web server interface for Ruby, in its multipart form parser (Rack::Multipart::Parser), buffers the entire multipart preamble in memory without any size limit. An unauthenticated remote attacker who can send requests to an affected application can submit multipart/form-data requests with a large preamble followed by a valid boundary, causing large memory spikes that can exhaust memory, crash worker processes, or severely slow the application through garbage collection pressure.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:36Z"},"euvd":{"id":"EUVD-2025-32057","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-61770","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-27610","published":"2025-03-10","fixed":"3.1.12","kev":false},{"cve":"CVE-2025-46727","published":"2025-05-07","fixed":"3.1.14","kev":false},{"cve":"CVE-2025-49007","published":"2025-06-04","fixed":"3.1.16","kev":false,"link":{"from":"CVE-2025-49007","to":"CVE-2025-61770","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}],"package":"RubyGems:rack"}}