activestorage is vulnerable to Arbitrary File Write
98
CVE Score
Critical
Arbitrary File Write
activestorage runs ImageMagick on an attachment as soon as the file is stored, and it does not restrict which coders ImageMagick may select from the file contents. A crafted upload can make a coder write arbitrary files on the server, and when the Disk service is in use it can also read files the application process can read, including secret_key_base and other credentials. That disclosure can lead to remote code execution or access to other systems. The fix ships an ImageMagick policy that denies the scripting, file, remote, and Ghostscript coders and applies it to every MiniMagick process.
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 uses the MiniMagick variant processor for uploads from untrusted users.
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 Write 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.