Active Storage leaks local files through video previews and analysis
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
Active Storage in Rails before 8.0.5.2 and from 8.1 before 8.1.4.1 passes uploaded video and audio files to FFmpeg without restricting the demuxer. This flaw (CWE-200) lets a remote attacker who knows a file path read a local media file that the application process can read. It affects applications that accept untrusted uploads and generate video previews or analyze media.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | 8.1 to before 8.1.4.1; before 8.0.5.2 | 8.1.4.1, 8.0.5.2 | Patch available | CNA |
| — | activestorage (RubyGems) | 8.1.0.beta1 to before 8.1.4.1 | 8.1.4.1 | Patch available | GHSA-3f4q-8x5m-76v8 |
| — | activestorage (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-3f4q-8x5m-76v8 |
- rails VendorRails Affected 8.1 to before 8.1.4.1; before 8.0.5.2 Fixed in 8.1.4.1, 8.0.5.2 Patch available CNA
- activestorage (RubyGems) Vendor— Affected 8.1.0.beta1 to before 8.1.4.1 Fixed in 8.1.4.1 Patch available GHSA-3f4q-8x5m-76v8
- activestorage (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-3f4q-8x5m-76v8
Remediation
Upgrade the rails package to 8.0.5.2 or to 8.1.4.1. Upgrade the activestorage gem to 8.0.5.2 or to 8.1.4.1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · CNA rails (rails) Fixed in 8.1.4.1, 8.0.5.2
- Fix · GHSA-3f4q-8x5m-76v8 activestorage (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-3f4q-8x5m-76v8 activestorage (RubyGems) Fixed in 8.0.5.2 Advisory →
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126188
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-12 Alias added: GHSA-3f4q-8x5m-76v8
- 2026-11-12 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-3f4q-8x5m-76v8
- 2026-11-12 CVSS score added · GHSA-3f4q-8x5m-76v8
- 2026-11-12 Weakness changed · GHSA-3f4q-8x5m-76v8
- 2026-11-12 8 new references · GHSA-3f4q-8x5m-76v8
References
Other 7
- https://github.com/rails/rails/security/advisories/GHSA-3f4q-8x5m-76v8
- https://github.com/rails/rails/commit/3b1f2627538dc597cd973530c08514a26c2b0282
- https://github.com/rails/rails/commit/69aff80d115bbb9d1e82fd6c6f2fd3ddeafb958b
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-3f4q-8x5m-76v8.yml
More Rails vulnerabilities
- TI-2014-00124 Path traversal in Ruby on Rails lets remote attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 File content disclosure in Rails Action View KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal in Rails Action View lets attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2026-126188 · CVE Program
- CVE-2026-126188 · NVD
- FIRST EPSS
- GHSA-3f4q-8x5m-76v8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences