CVE-2026-142591: Rack: `Rack::QueryParser` separator pattern allocates ~48 bytes per space after `&`, allowing denial of service via memory amplification.

Published Dec 2, 2026
·
Updated

Rack is a modular Ruby web server interface. Prior to 2.2.26, 3.1.24, and 3.2.9, Rack::QueryParser uses the quantified DEFAULTSEP and COMMONSEP regular expressions when splitting query strings and application/x-www-form-urlencoded bodies, while paramshashhaskey? and the Rack 2.2 normalizeparams path use quantified expressions for bracketed parameter names. Long runs of spaces after an ampersand, or long runs of bracket characters in a parameter name, cause Ruby's regular expression engine to allocate approximately 48 bytes of backtracking state per input character. RACKQUERYPARSERBYTESIZELIMIT bounds the request size but not this amplification, and RACKQUERYPARSERPARAMSLIMIT does not prevent it because very few parameters are required. An unauthenticated attacker can cause substantial transient memory allocation with one request, and concurrent requests can exhaust process or container memory. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.

Affected Software

1 affected component
rubygems/rack<2.2.26, <3.1.24, <3.2.9

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.26
  2. Upgrade

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

    Fixed in 3.1.24
  3. Upgrade

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

    Fixed in 3.2.9

Event History

Dec 2, 2026
CVE Published
via MITRE·09:32 PM
Data Sourced
via MITRE·09:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are most exposed to exploitation?

Any application using an affected Rack version that accepts network requests containing query strings or application/x-www-form-urlencoded request bodies is exposed. The issue can be triggered without authentication, and concurrent malicious requests can exhaust the memory available to a process or container.

2

What request content is needed to trigger the memory amplification?

An attacker can use a long run of spaces immediately after an ampersand in a query string or form body. Long runs of bracket characters in a parameter name can also trigger the affected regular-expression behavior.

3

Do Rack query-parser size and parameter limits mitigate this issue?

No. RACK_QUERY_PARSER_BYTESIZE_LIMIT limits total request size but does not bound the memory amplification, and RACK_QUERY_PARSER_PARAMS_LIMIT is ineffective because the attack requires very few parameters.

4

How can I determine whether my application needs remediation?

Check the Rack version in use. Versions earlier than 2.2.26, 3.1.24, or 3.2.9 are affected; updating to the applicable fixed version remediates the issue.

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