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 | Vendor | Product | Affected 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.
References
- https://github.com/rails/rails/commit/3b1f2627538dc597cd973530c08514a26c2b0282 Patch
- https://security-tracker.debian.org/tracker/CVE-2026-126188 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-1261... Vendor Advisory
- https://github.com/rails/rails/releases/tag/v8.0.5.2 URL
- https://github.com/rails/rails/releases/tag/v8.1.4.1 URL
- https://nvd.nist.gov/vuln/detail/CVE-2026-126188 Vendor Advisory
- https://github.com/rails/rails/security/advisories/GHSA-3f4q-8x5m-76v8 Vendor Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-...
- https://github.com/advisories/GHSA-3f4q-8x5m-76v8
- https://ubuntu.com/security/CVE-2026-126188 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-126188 Third Party Advisory
- https://github.com/rails/rails/commit/69aff80d115bbb9d1e82fd6c6f2fd3ddeafb958b Patch
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-200Information Exposure
Timeline
Published10 Nov 2026
Updated22 Nov 2026
First seen11 Nov 2026
Sources
CVE-2026-126188 · NVD
CVE-2026-126188 · MITRE
DEBIAN-CVE-2026-126188 · OSV
CVE-2026-126188 · OSV
GHSA-3f4q-8x5m-76v8 · GHSA
UBUNTU-CVE-2026-126188 · OSV
Track software like this
Free during beta