Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
3.7

CVE-2026-126188: Rails Active Storage may expose local files via video previews

CVE-2026-126188 · published 11 days ago
Summary

If your Rails app lets users upload files and creates video or audio previews, a flaw could let an attacker cause the system to read any file that the app can access. This happens because the preview process uses a media tool that can be tricked into opening files specified by the attacker. Update Rails to the latest patch or disable automatic video/audio preview generation for untrusted uploads to protect your data.

What to do
  • Update activestorage to version 8.1.4.1.
  • Update activestorage to version 8.0.5.2.
Affected software
Ecosystem VendorProductAffected versions
– rails rails >= 8.1, < 8.1.4.1
Debian:12 debian rails All versions
rubygems – activestorage >= 8.1.0.beta1, < 8.1.4.1
< 8.0.5.2
Fix: upgrade to 8.1.4.1
Ubuntu:Pro:16.04:LTS canonical rails All versions
Original advisory text
Active Storage: Possible local file disclosure in Active Storage video previews and analysis
Active Storage makes it simple to upload and reference files in cloud services and attach those files to Active Record objects. Prior to 8.0.5.2 and from 8.1 until 8.1.4.1, Active Storage's ActiveStorage::Previewer::VideoPreviewer, ActiveStorage::Analyzer::VideoAnalyzer, and ActiveStorage::Analyzer::AudioAnalyzer pass uploaded blob contents to FFmpeg without restricting the demuxer. A direct upload can retain a client-declared video/* or audio/* content type for an HLS playlist. FFmpeg content probing selects the hls demuxer, which opens attacker-named file:// segments when the blob is previewed or analyzed. Applications that accept untrusted uploads and generate video previews or analyze video or audio attachments can disclose a local media file readable by the application process when the attacker knows its path. This issue is fixed in versions 8.0.5.2 and 8.1.4.1.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
3.7 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-200Information Exposure
Timeline
Published10 Nov 2026
Updated22 Nov 2026
First seen11 Nov 2026
Track software like this
Free during beta