ADVISORIES

GitHub Advisory Database

GHSA-p9fm-f462-ggrg

Rails Active Storage has a possible DoS vulnerability in proxy mode via multi-range requests

Details

Impact

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.

Releases

The fixed releases are available at the normal locations.

Credit

This issue was responsibly reported by Hackerone researcher thwin_htet.

Affected packages

EcosystemPackageAffected versions
RubyGemsactivestorage
From 8.1.0 before 8.1.2.1 (fixed in 8.1.2.1)
RubyGemsactivestorage
From 8.0.0 before 8.0.4.1 (fixed in 8.0.4.1)
RubyGemsactivestorage
All versions before 7.2.3.1 (fixed in 7.2.3.1)

References