CVE-2025-61770
October 07, 2025
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.
Affected Packages
https://github.com/rack/rack.git (GITHUB):
Affected version(s) >=v3.1.0 <v3.1.17Fix Suggestion:
Update to version v3.1.17https://github.com/rack/rack.git (GITHUB):
Affected version(s) >=v2.0.9.2 <v2.2.19Fix Suggestion:
Update to version v2.2.19https://github.com/rack/rack.git (GITHUB):
Affected version(s) >=v3.2.0 <v3.2.2Fix Suggestion:
Update to version v3.2.2rack (RUBY):
Affected version(s) >=3.1.0 <3.1.17Fix Suggestion:
Update to version 3.1.17rack (RUBY):
Affected version(s) >=0.1.0 <2.2.19Fix Suggestion:
Update to version 2.2.19rack (RUBY):
Affected version(s) >=3.2.0 <3.2.2Fix Suggestion:
Update to version 3.2.2Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Resource Consumption
EPSS
Base Score:
0.21