CVE-2025-61771
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"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.
Affected Packages
https://github.com/rack/rack.git (GITHUB):
Affected version(s) >=v3.2.0 <v3.2.2Fix Suggestion:
Update to version v3.2.2https://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.19rack (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.2Additional Notes
The description of this vulnerability differs from MITRE.
Related 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.13