activestorage is vulnerable to Denial of Service (DoS)
43
CVE Score
Medium
Denial of Service (DoS)
ActiveStorage::Filename#base and #extension_with_delimiter in activestorage pass the stored filename to File.basename and File.extname, which raise ArgumentError when the name contains a NUL byte. Active Storage stores the client-supplied filename as given, so a permitted upload can persist that name on databases that accept NUL bytes. Later requests that build a variant, open the blob, or render it then raise until the blob is purged or renamed. The fix derives the base and extension from the sanitized filename.
Upgrade the activestorage library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the application stores uploads whose filenames can contain a NUL byte.
0.1 - 8.0.5.1
Fixed in 8.0.5.28.1.0 - 8.1.4
Fixed in 8.1.4.1activestorage is vulnerable to Denial of Service (DoS) in versions 0.1 - 8.0.5.1 and 8.1.0 - 8.1.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.