Intel

AIKIDO-2026-118185

activestorage is vulnerable to Arbitrary File Read

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

88

CVE Score

High

Arbitrary File Read

Are you affected? Scan for Free

TL;DR

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.

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 analyzes or previews uploads from untrusted users with FFmpeg or ImageMagick.

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 Read 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