Rack: `Rack::QueryParser` separator pattern allocates ~48 bytes per space after `&`, allowing denial of service via memory amplification.
- CVE-2026-142591
- GHSA-f7cc-57h7-qrcg
- EUVD-2026-141926
Description
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 DEFAULT_SEP and COMMON_SEP regular expressions when splitting query strings and application/x-www-form-urlencoded bodies, while params_hash_has_key? and the Rack 2.2 normalize_params 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. RACK_QUERY_PARSER_BYTESIZE_LIMIT bounds the request size but not this amplification, and RACK_QUERY_PARSER_PARAMS_LIMIT 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.
Text from the CVE.org record.
Recommendation
rack
- If you run 3.2.xupdate to 3.2.9 or laterPatch update: breaking changes are unlikelyrack 3.2.9 on its registry (opens in a new tab)
- If you run a version from 3.0 to before 3.1.24update to 3.1.24 or laterMinor version change: check the release notesrack 3.1.24 on its registry (opens in a new tab)
- If you run a version before 2.2.26update to 2.2.26 or laterrack 2.2.26 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
rack
Affected versions Fixed in < 2.2.26 none stated >= 3.0.0, < 3.1.24 none stated >= 3.2.0, < 3.2.9 none stated rackRubyGems
Affected versions Fixed in from 3.2 to before 3.2.9 3.2.9 from 3.0 to before 3.1.24 3.1.24 before 2.2.26 2.2.26
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.