CVE-2026-126186

Active Storage: Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing

Published Nov 10, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Active Storage components write uploaded files to temporary disk using the original filename’s extension and then pass the file path to external utilities such as ffprobe, ffmpeg, and ImageMagick. Those utilities select decoding drivers based on the extension when the content type does not match. An attacker can choose a malicious filename and declare a content type that forces a dangerous decoder, such as AviSynth, to be invoked. The resulting execution can expose files readable by the application process or load a native library supplied by the attacker, giving remote code execution in the media‑processing process. The weakness also allows arbitrary file reads through the preview image output. The flaw covers Rails versions prior to 8.1.4.1 and 8.0.5.2 when any untrusted upload that triggers video preview, audio preview, or image conversion is processed.

Affected Systems

Rails applications using Active Storage that accept uploads from users and generate video previews, audio preview, or image thumbnails through ImageMagick or ffmpeg are vulnerable. Only Rails releases before 8.1.4.1 or 8.0.5.2 are affected; later versions contain the fix. The vulnerability is tied specifically to ActiveStorage::Blob#open behavior in those Rails releases. Applications with custom or patched media processors are not impacted if they avoid the vulnerable file‑handling path.

Risk and Exploitability

The CVSS score is 8.8, indicating high severity. The EPSS score is below 1 %, suggesting that real‑world exploitation is low but not impossible, especially if a vulnerability is known to a threat actor. The flaw is not listed in the CISA KEV catalog, but the lack of exploitation pressure does not reduce the risk for active upload environments. Attackers can exploit the flaw by uploading a crafted file with a specific extension, such as .avs for AviSynth, causing the media server to execute code or read files on disk. The requirement of a pre‑built ffmpeg binary that supports AviSynth (common in Windows and certain Linux distributions) limits the attack surface, yet the possibility of other dangerous decoders exists. For environment defenders, the potential impact includes denial of service, data exfiltration, and full remote code execution on the host running media processing utilities.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Ruby on Rails to version 8.1.4.1 (or 8.0.5.2) where the vulnerability is patched
  • Restrict file uploads to safe extensions and validate true content type before processing
  • If upgrade is delayed, configure ffmpeg and ImageMagick to disable AviSynth and other unsafe decoders, or replace them with secure alternatives

Generated by OpenCVE AI on November 13, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4934-1 rails security update
Github GHSA Github GHSA GHSA-v924-7rp8-4mxh Active Storage: Possible arbitrary file read and remote code execution in video previews, analysis and image processing
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Rails
Rails rails
Vendors & Products Rails
Rails rails
Type Values Removed Values Added
Description 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.
Title Active Storage: Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing
Weaknesses CWE-646
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-641

    Improper Restriction of Names for Files and Other Resources

  • CWE-646

    Reliance on File Name or Extension of Externally-Supplied File

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 12, 2026, 6:01 PM
Reserved
Nov 10, 2026, 8:07 PM
Status
Awaiting Analysis
Published
Nov 10, 2026, 10:18 PM
Modified
Nov 12, 2026, 10:09 PM
Severity
Important
Public date
Nov 10, 2026, 9:14 PM