Active Storage DoS Vulnerability in Rails Products from Ruby on Rails
CVE-2026-126071
What is CVE-2026-126071?
A vulnerability in Active Storage allows an attacker to cause a denial of service (DoS) by exploiting error handling during file downloads. When Active Storage serves files and encounters a storage service error, it may improperly handle the HTTP response, leading to blocking of server threads. This occurs specifically when errors arise after initial data has been sent, causing the request to hang. Affected applications using cloud services for storage, like Amazon S3 and Google Cloud Storage, are at risk of thread exhaustion due to repeated failed downloads. This situation can be triggered by deletion of files during active serving or similar storage issues. It is recommended to upgrade to the patched versions 8.1.4.1 or 8.0.5.2 to mitigate this vulnerability.
Affected Version(s)
rails >= 8.1, < 8.1.4.1 < 8.1, 8.1.4.1
rails >= 8.0, < 8.0.5.2 < 8.0, 8.0.5.2
