Active Storage: Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing
CVE-2026-126186Published 10 Nov 2026, 21:14 UTC
Real-world risk
5.1/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.8
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.1.4.1 and 8.0.5.2, ActiveStorage::Blob#open writes a blob to a tempfile whose name carries the extension of the uploaded filename, and hands that path to ffprobe (VideoAnalyzer, AudioAnalyzer), ffmpeg (VideoPreviewer) and ImageMagick (ImageAnalyzer, the :mini_magick variant processor). These tools select a decoder from the file extension when the content does not identify its own format, so an attacker who chooses the filename and declares the content type of an upload chooses which decoder processes it. An FFmpeg built with AviSynth support treats a file with the .avs extension as an AviSynth script and evaluates it, which could disclose files readable by the application process through the preview image, or load a native library the attacker has also uploaded, possibly leading to remote code execution in the FFmpeg process. ImageMagick selects its coders and delegates from the extension in the same way. An application is affected if it accepts uploads from untrusted users and analyzes video or audio attachments, generates video previews, or processes images with ImageMagick. The AviSynth attack additionally requires an FFmpeg built with --enable-avisynth and the AviSynthPlus runtime on the host. Upstream FFmpeg and the common Linux distribution and Homebrew packages do not enable it; the GPL builds distributed for Windows and Linux from ffmpeg.org do. Other decoders that FFmpeg or ImageMagick select from the extension may be reachable without AviSynth. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Ruby on RailsWidespread | >= 8.1, < 8.1.4.1; < 8.0.5.2 | 8.1.4.1, 8.0.5.2 |
What to do
Update to a fixed version: 8.1.4.1, 8.0.5.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.6 × threat 0.855.100
- Rounded to one decimal between 0.1 and 105.1
Exploitation and evidence timeline
- 10 Nov 2026 Published
- 3 Dec 2026 Risk 5.1 (cvss fallback)
Weakness
CWE-646
References
- https://github.com/rails/rails/security/advisories/GHSA-v924-7rp8-4mxhvendor-advisory
- https://github.com/rails/rails/commit/72136ff39153bc8d63ecbc899993848eb3d6573emisc
- https://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636misc
- https://github.com/rails/rails/releases/tag/v8.0.5.2misc
- https://github.com/rails/rails/releases/tag/v8.1.4.1misc
- CVE-2026-126186 on CVE.org