REDHAT-BUG-2402174: High severity Rack Rack vulnerability

Published Oct 7, 2025
·
Updated

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 Software

1 affected component
Rack Rack<2.2.19, <3.1.17, <3.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.2.19
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.1.17
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.2.2
  4. Configuration

    Ensure Rack multipart parsing enforces a preamble size limit (e.g., 16 KiB) or discards multipart preamble data entirely; in affected versions, the preamble was buffered in memory without a limit.

    Rack::Multipart::Parser multipart preamble size limit = 16 KiB (example)
  5. Compensating control

    Limit the total request body size at the proxy or web server level to reduce the ability of attackers to trigger large transient memory spikes.

  6. Compensating control

    Monitor memory usage and set per-process limits to prevent OOM conditions and worker crashes during attack traffic.

Event History

Oct 7, 2025
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2402174?

The severity of REDHAT-BUG-2402174 is high due to the potential for Denial of Service through excessive memory consumption.

2

How do I fix REDHAT-BUG-2402174?

To fix REDHAT-BUG-2402174, upgrade Rack to versions 2.2.19, 3.1.17, or 3.2.2 or later.

3

What versions are affected by REDHAT-BUG-2402174?

REDHAT-BUG-2402174 affects Rack versions prior to 2.2.19, 3.1.17, and 3.2.2.

4

What is the impact of not addressing REDHAT-BUG-2402174?

Failing to address REDHAT-BUG-2402174 could lead to Denial of Service, where an application could become unresponsive.

5

Is there a workaround for REDHAT-BUG-2402174?

A temporary workaround for REDHAT-BUG-2402174 is to limit the size of incoming payloads until an upgrade can be performed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203