CVE-2025-61771 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` 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.
A denial-of-service vulnerability has been identified in the Rack web server interface for Ruby. In versions prior to 2.2.19, 3.1.17, and 3.2.2, the `Rack::Multipart::Parser` component improperly handles non-file form fields in multipart requests. These fields are stored entirely in memory as Ruby `String` objects, without any size limit. This can lead to excessive memory consumption, out-of-memory conditions, and process crashes. The vulnerability can be exploited by sending large text fields in multipart/form-data requests, causing significant memory exhaustion, especially under concurrent processing.
Users can upgrade to Rack versions 2.2.19, 3.1.17, or 3.2.2, which include a cap on the size of non-file fields in multipart requests. Alternatively, Nginx can be configured to restrict the maximum request body size, and applications can be updated to validate and reject unusually large form fields.
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
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| 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] |