# GHSA-3F4Q-8X5M-76V8: Active Storage: Possible local file disclosure in video previews and analysis

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-11-12
- Modified: 2026-11-12

## Tracked as

- [CVE-2026-126188](https://cve.now/CVE-2026-126188.md): Ruby on Rails local file disclosure in Active Storage video previews

## Affected versions

- activestorage (RubyGems): from 8.1.0.beta1, fixed in 8.1.4.1
- activestorage (RubyGems): fixed in 8.0.5.2

## Description

### Impact
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.

### Details
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.

### Workarounds
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`.

### Releases
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

### Credit
This issue was responsibly reported by HackerOne researcher [w3rmut](https://hackerone.com/w3rmut).

## References

- https://github.com/rails/rails/security/advisories/GHSA-3f4q-8x5m-76v8
- https://nvd.nist.gov/vuln/detail/CVE-2026-126188
- https://github.com/rails/rails/commit/3b1f2627538dc597cd973530c08514a26c2b0282
- https://github.com/rails/rails/commit/69aff80d115bbb9d1e82fd6c6f2fd3ddeafb958b
- https://github.com/rails/rails
- 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/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-3f4q-8x5m-76v8.yml

Page: https://cve.now/GHSA-3F4Q-8X5M-76V8

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
