Allocation of Resources Without Limits or Throttling Affecting rack package, versions <2.2.25>=3.0.0.beta1, <3.1.23>=3.2.0, <3.2.8


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.66% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RACK-22840117
  • published24 Nov 2026
  • disclosed9 Nov 2026
  • creditUnknown

Introduced: 9 Nov 2026

NewCVE-2026-125111  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade rack to version 2.2.25, 3.1.23, 3.2.8 or higher.

Overview

rack is a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the Rack::Multipart::Parser in its multipart parser. An unauthenticated attacker can send a well-formed multipart request with part boundaries aligned so reads end in or just after headers, causing parsed data to accumulate in the scan buffer until memory is exhausted and application workers become unavailable.

Notes

  • The exploit reaches Rack::Multipart::Parser only in applications that parse multipart requests with Rack; other Rack applications are not affected by this path.
  • With default limits, crafted non-file parts can grow the scan buffer to roughly 4 GiB per request; ordinary file-upload parts are limited to roughly 128 MiB per request.

Workarounds

  • Limit request body size at the reverse proxy or application boundary to prevent oversized multipart requests from exhausting worker memory.
  • Set RACK_MULTIPART_PARSER_BYTESIZE_LIMIT to the largest multipart body the application needs to accept, bounding the memory a single request can hold.

CVSS Base Scores

version 4.0
version 3.1