CVE-2026-126188
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.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.
How to fix
- activestorage8.1.4.1, 8.0.5.2 or later
- rails rails8.0.5.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| activestorageRubyGems | 8.1.0.beta1 ≤ v < 8.1.4.1, v < 8.0.5.2 | 8.1.4.1, 8.0.5.2 |
| rails rails | >= 8.1, < 8.1.4.1, v < 8.0.5.2 | 8.0.5.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.