Rails Active Storage has a possible DoS vulnerability in proxy mode via multi-range requests
rails activestorage
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| activestorage RubyGems |
|
|
Original description
Active Storage allows users to attach cloud and local files in Rails applications. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 Active Storage's proxy controller does not limit the number of byte ranges in an HTTP Range header. A request with thousands of small ranges causes disproportionate CPU usage compared to a normal request for the same file, possibly resulting in a DoS vulnerability. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.