Allocation of Resources Without Limits or Throttling Affecting rack package, versions <2.2.18


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-13052974
  • published26 Sept 2025
  • disclosed25 Sept 2025
  • creditkwkr

Introduced: 25 Sep 2025

NewCVE-2025-59830  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade rack to version 2.2.18 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 due to params_limit only being enforced for parameters separated by &, while still splitting on both & and ; in the QueryParser. An attacker can exhaust system resources and cause service disruption by submitting a large number of parameters separated by semicolons, bypassing the intended parameter count limit.

Note:

This is only exploitable if the QueryParser is used directly with its default configuration (no explicit delimiter).

Workaround

This vulnerability can be mitigated by configuring QueryParser with an explicit delimiter (such as &) or by enforcing query string and request size limits at the web server or proxy layer to mitigate excessive parsing overhead.

References

CVSS Base Scores

version 4.0
version 3.1