Possible Denial of Service Vulnerability in Rack Header Parsing
rack
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| rack RubyGems |
|
|
rack
| Product | Affected | Fixed in |
|---|---|---|
| rack RubyGems |
|
|
Rack is a modular Ruby web server interface. Carefully crafted headers can cause header parsing in Rack to take longer than expected resulting in a possible denial of service issue. Accept and Forwarded headers are impacted. Ruby 3.2 has mitigations for this problem, so Rack applications using Ruby 3.2 or newer are unaffected. This vulnerability is fixed in 2.0.9.4, 2.1.4.4, 2.2.8.1, and 3.0.9.1.
From the CVE record · GitHub_M
Rack can take longer than expected to parse carefully crafted Accept or Forwarded headers, potentially causing a denial of service. An attacker who can supply these headers may trigger the issue; the input does not specify authentication or user-interaction requirements. Rack applications using Ruby 3.2 or newer are unaffected.
Check applications using the RubyGems rack package at versions >=3.0.0 <3.0.9.1, >=2.2.0 <2.2.8.1, >=2.1.0 <2.1.4.4, or <2.0.9.4, unless they use Ruby 3.2 or newer.