{"id":"CVE-2025-61771","published":"2025-10-07T14:42:53Z","modified":"2025-10-07T17:52:09Z","title":"Rack's multipart parser buffers large non‑file fields entirely in memory, 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` stores non-file form fields (parts without a `filename`) entirely in memory as Ruby `String` objects. A single large text field in a multipart/form-data request (hundreds of megabytes or more) can consume equivalent process memory, potentially leading to out-of-memory (OOM) conditions and denial of service (DoS). Attackers can send large non-file fields to trigger excessive memory usage. Impact scales with request size and concurrency, potentially leading to worker crashes or severe garbage-collection overhead. All Rack applications processing multipart form submissions are affected. Versions 2.2.19, 3.1.17, and 3.2.2 enforce a reasonable size cap for non-file fields (e.g., 2 MiB). Workarounds include restricting maximum request body size at the web-server or proxy layer (e.g., Nginx `client_max_body_size`) and validating and rejecting unusually large form fields at the application level.","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.00594,"percentile":0.49314,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-w9pc-fmgc-vxvw","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":15.1,"factors":[{"name":"EPSS percentile","points":9.86},{"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:58.348077Z","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-w9pc-fmgc-vxvw"],"provenance":"source"}],"summary":{"text":"Rack, the modular Ruby web server interface, has a flaw in its multipart form parser (Rack::Multipart::Parser), which holds non-file form fields entirely in memory. Remote attackers can exploit this without authentication or user interaction by sending a multipart/form-data request containing very large non-file fields, which can exhaust process memory, causing out-of-memory conditions, worker crashes, or severe garbage-collection overhead for any Rack application that processes multipart form submissions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:53Z"},"euvd":{"id":"EUVD-2025-32056","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-61771","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-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-61771","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},{"cve":"CVE-2025-61919","published":"2025-10-10","fixed":"3.2.3","kev":false}],"package":"RubyGems:rack"}}