activestorage is vulnerable to Arbitrary File Read
88
CVE Score
High
Arbitrary File Read
activestorage writes an upload to a tempfile whose name keeps the uploaded extension, then passes that path to ffprobe, ffmpeg, or ImageMagick. Those tools can select a decoder from the extension when the bytes do not identify a format, so the declared filename and content type choose the decoder. An FFmpeg build with AviSynth support can evaluate an .avs upload as a script, disclose files the process can read, or load a native library from another upload. The fix keeps the uploaded extension only when it matches the blob's recorded content type.
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 analyzes or previews uploads from untrusted users with FFmpeg or ImageMagick.
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 Arbitrary File Read 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.