Intel

AIKIDO-2026-92669

activestorage is vulnerable to Arbitrary File Write

CVE-2026-122006Published Nov 4, 2026
November 4, 2026

98

CVE Score

Critical

Arbitrary File Write

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the activestorage library to the patch version.

Who does this affect?

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.

Versions

0.1 - 8.0.5.1

Fixed in 8.0.5.2

8.1.0 - 8.1.4

Fixed in 8.1.4.1

Background info

activestorage is vulnerable to Arbitrary File Write in versions 0.1 - 8.0.5.1 and 8.1.0 - 8.1.4.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea