UBUNTU-CVE-2026-126186: Medium severity ubuntu/rails vulnerability

Published Nov 12, 2026
·
Updated

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 :minimagick 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.

Affected Software

7 affected components
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*
ubuntu/rails*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Active Storage to a version that resolves this vulnerability.

    Fixed in 8.1.4.1
  2. Upgrade

    Upgrade Active Storage to a version that resolves this vulnerability.

    Fixed in 8.0.5.2

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Applications that accept uploads from untrusted users are affected when they analyze video or audio attachments, generate video previews, or process images through the affected Active Storage analyzers or processors. Exposure depends on those upload-processing features being enabled and used.

2

What does an attacker need to control?

The attacker needs to be able to upload a file and choose its filename and declared content type. This can cause downstream tools to select a decoder based on the uploaded file extension when the content does not identify its own format.

3

When could this lead to file disclosure or code execution?

If FFmpeg is built with AviSynth support, an uploaded .avs file can be evaluated as an AviSynth script. This could disclose files readable by the application process through a preview image, or potentially load an attacker-uploaded native library and execute code in the FFmpeg process.

4

How can teams determine whether they need to remediate?

Check whether the application uses an Active Storage version earlier than 8.1.4.1 or 8.0.5.2, accepts untrusted uploads, and invokes video, audio, preview, or ImageMagick processing. Also determine whether the deployed FFmpeg includes AviSynth support, as that affects the .avs attack path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203