CVE-2025-61770 Details
Description
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.
A denial-of-service vulnerability has been identified in Rack, a Ruby web server interface, in versions prior to 2.2.19, 3.1.17, and 3.2.2. The issue arises in the `Rack::Multipart::Parser`, which buffers the entire multipart preamble (the bytes before the first boundary) in memory without any size limit. This flaw allows remote attackers to send large preambles in multipart/form-data requests, leading to significant memory consumption and potential process termination due to out-of-memory conditions. The vulnerability can cause worker crashes or severe slowdowns because of garbage collection, especially when allowed request sizes and concurrency are high.
Users can upgrade to Rack versions 2.2.19, 3.1.17, or 3.2.2, which address the vulnerability by enforcing a preamble size limit or discarding preamble data entirely. Additionally, total request body size can be limited at the proxy or web server level, and memory usage can be monitored with per-process limits set to prevent out-of-memory conditions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rack rack | < 2.2.19 >= 3.1.0, < 3.1.17 >= 3.2.0, < 3.2.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 10, 2025 | Initial Analysis | [email protected] |
| Oct 7, 2025 | New CVE Received | [email protected] |