Loading advisory.
Loading advisory.
Active Storage: Possible local file disclosure in video previews and analysis
Active Storage's VideoPreviewer, VideoAnalyzer and AudioAnalyzer run ffmpeg and ffprobe on a blob's contents without restricting the input format, so FFmpeg selects a demuxer by probing the file.
Published 2026-11-10 23:40 UTC · Modified 2026-11-12 22:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| activestorage | RubyGems | >= 8.1.0.beta1, < 8.1.4.1 < 8.0.5.2 versions 8.1.0, 8.1.0.beta1, 8.1.0.rc1, 8.1.1, 8.1.2, 8.1.2.1, 8.1.3, 8.1.3.1, 8.1.4, 0.1, 5.2.0, 5.2.0.beta1, 5.2.0.beta2, 5.2.0.rc1, 5.2.0.rc2, 5.2.1, 5.2.1.1, 5.2.1.rc1, 5.2.2, 5.2.2.1 and 166 more | 8.1.4.1, 8.0.5.2 | gem install activestorage -v 8.1.4.1gem install activestorage -v 8.0.5.2 |
Active Storage's VideoPreviewer, VideoAnalyzer and AudioAnalyzer run ffmpeg and ffprobe on a blob's contents without restricting the input format, so FFmpeg selects a demuxer by probing the file. A blob created through a direct upload keeps the content type the client declared, so a client can store an HLS playlist under a video/* or audio/* type. When that blob is previewed or analyzed, the hls demuxer opens the file:// segments that the playlist names, and the preview image or the stored metadata could disclose a local media file that the application process can read and whose path the attacker knows.
Applications that accept uploads from untrusted users and generate video previews, or analyze video or audio attachments with FFmpeg, are affected.
The fixed releases limit the formats FFmpeg may open to common audio and video containers, configured by the new config.active_storage.ffmpeg_allowed_formats setting. Files in other formats no longer preview or receive media metadata; the Active Storage CHANGELOG names some of them and shows how to add a format to the list.
Applications that cannot upgrade can stop Active Storage from running FFmpeg on uploaded files by removing ActiveStorage::Previewer::VideoPreviewer from config.active_storage.previewers, and ActiveStorage::Analyzer::VideoAnalyzer and ActiveStorage::Analyzer::AudioAnalyzer from config.active_storage.analyzers.
The fixed releases are available at the normal locations.
Patches for those who cannot upgrade at once:
8.1: https://github.com/rails/rails/commit/3b1f2627538dc597cd973530c08514a26c2b0282.patch
8.0: https://github.com/rails/rails/commit/69aff80d115bbb9d1e82fd6c6f2fd3ddeafb958b.patch
This issue was responsibly reported by HackerOne researcher w3rmut.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.003 on 2026-11-24 to 0.004 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |
| 2026-11-26 | 0.004 | 0.003 | v2026.06.15 |