Improper resource allocation In ruby-rack
Description
Rack is a modular Ruby web server interface. Prior to versions 2.2.20, 3.1.18, and 3.2.3, Rack::Request#POST reads the entire request body into memory for Content-Type: application/x-www-form-urlencoded, calling rack.input.read(nil) without enforcing a length or cap. Large request bodies can therefore be buffered completely into process memory before parsing, leading to denial of service (DoS) through memory exhaustion. Users should upgrade to Rack version 2.2.20, 3.1.18, or 3.2.3, anu of which enforces form parameter limits using query_parser.bytesize_limit, preventing unbounded reads of application/x-www-form-urlencoded bodies. Additionally, enforce strict maximum body size at the proxy or web server layer (e.g., Nginx client_max_body_size, Apache LimitRequestBody).
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
debian 11 | 2.1.4-3+deb11u4 | ||
debian 12 | 2.2.20-0+deb12u1 | ||
debian 13 | 3.1.18-1~deb13u1 | ||
debian 14 | 3.1.18-1 | ||
rubygems | 2.2.20, 3.1.18, 3.2.3 | ||
rpm rhel9.4 | 0:0.11.7-2.el9_4.5 | ||
rpm rhel10 | 0:0.12.1-1.el10_1.1 | ||
rpm rhel8 | 0:0.10.18-2.el8_10.7 | ||
rpm rhel8.4 | 0:0.10.8-1.el8_4.8 | ||
rpm rhel9 | 0:0.11.10-1.el9_7.1 |
Aliases
References