CVE-2026-33174: Rails Active Storage has a possible DoS vulnerability when in proxy mode via Range requests
Impact When serving files through Active Storage's Blobs::ProxyController, the controller loads the entire requested byte range into memory before sending it. A request with a large or unbounded Range header (e.g. bytes=0-) could cause the server to allocate memory proportional to the file size, possibly resulting in a DoS vulnerability through memory exhaustion.
Published Mar 23, 2026 · Updated May 13, 2026
Affected packages
activestorage
- Ecosystem
- RubyGems
- Affected
- >= 8.1.0.beta1, < 8.1.2.1
- Fixed in
- 8.1.2.1
- Check
bundle info activestorage
activestorage
- Ecosystem
- RubyGems
- Affected
- >= 8.0.0.beta1, < 8.0.4.1
- Fixed in
- 8.0.4.1
- Check
bundle info activestorage
activestorage
- Ecosystem
- RubyGems
- Affected
- < 7.2.3.1
- Fixed in
- 7.2.3.1
- Check
bundle info activestorage
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
When serving files through Active Storage's Blobs::ProxyController, the controller loads the entire requested byte range into memory before sending it. A request with a large or unbounded Range header (e.g. bytes=0-) could cause the server to allocate memory proportional to the file size, possibly resulting in a DoS vulnerability through memory exhaustion.
Releases
The fixed releases are available at the normal locations.
Credit
This issue was responsibly reported by Hackerone user pirikara
Credited to Pirikara.
References
- https://github.com/rails/rails/security/advisories/GHSA-r46p-8f7g-vvvg
- https://github.com/rails/rails/commit/2cd933c366b777f873d4d590127da2f4a25e4ba5
- https://github.com/rails/rails/commit/42012eaaa88dfc7d0030161b2bc8074a7bbce92a
- https://github.com/rails/rails/commit/8159a9c3de3f27a2bcf2866b8bf9ceb9075e229b
- https://github.com/rails/rails/releases/tag/v7.2.3.1
- https://github.com/rails/rails/releases/tag/v8.0.4.1
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-33174
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33174.yml
- https://github.com/advisories/GHSA-r46p-8f7g-vvvg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-122006
Active Storage: Possible arbitrary file write and read in image analysis
critical9.8Nov 12, 2026CVE-2026-126084
Active Storage: Unsigned Content-Type in GCS direct uploads with cache_control
medium4.7Nov 12, 2026CVE-2026-126188
Active Storage: Possible local file disclosure in video previews and analysis
low3.7Nov 12, 2026CVE-2026-126071
Active Storage: Possible DoS vulnerability in Active Storage proxy mode via storage errors during streaming
medium5.3Nov 10, 2026CVE-2026-126074
Active Storage: Possible DoS vulnerability in Active Storage filename handling
medium4.3Nov 10, 2026CVE-2026-126085
Active Storage: Possible circumvention of file size limits in Active Storage direct uploads to Google Cloud Storage
medium5.3Nov 10, 2026
