Active Storage trusts uploaded file extensions, risking file reads
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
Rails Active Storage is affected from 8.1 before 8.1.4.1 and before 8.0.5.2. It writes uploaded files to temporary files that keep the uploaded extension, and ffprobe, ffmpeg or ImageMagick then pick a decoder from that extension (CWE-646). A user who uploads files with chosen names and declared content types can make these tools process them with an unintended decoder, which can disclose files readable by the application or lead to code execution in an FFmpeg build with AviSynth support.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
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.1.4.1 and 8.0.5.2, ActiveStorage::Blob#open writes a blob to a tempfile whose name carries the extension of the uploaded filename, and hands that path to ffprobe (VideoAnalyzer, AudioAnalyzer), ffmpeg (VideoPreviewer) and ImageMagick (ImageAnalyzer, the :mini_magick variant processor). These tools select a decoder from the file extension when the content does not identify its own format, so an attacker who chooses the filename and declares the content type of an upload chooses which decoder processes it. An FFmpeg built with AviSynth support treats a file with the .avs extension as an AviSynth script and evaluates it, which could disclose files readable by the application process through the preview image, or load a native library the attacker has also uploaded, possibly leading to remote code execution in the FFmpeg process. ImageMagick selects its coders and delegates from the extension in the same way. An application is affected if it accepts uploads from untrusted users and analyzes video or audio attachments, generates video previews, or processes images with ImageMagick. The AviSynth attack additionally requires an FFmpeg built with --enable-avisynth and the AviSynthPlus runtime on the host. Upstream FFmpeg and the common Linux distribution and Homebrew packages do not enable it; the GPL builds distributed for Windows and Linux from ffmpeg.org do. Other decoders that FFmpeg or ImageMagick select from the extension may be reachable without AviSynth. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
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-v924-7rp8-4mxh |
| — | activestorage (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-v924-7rp8-4mxh |
- 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-v924-7rp8-4mxh
- activestorage (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-v924-7rp8-4mxh
Remediation
Upgrade the rails and activestorage packages to 8.1.4.1 or 8.0.5.2, depending on the release line you run. Red Hat lists no fix planned for Red Hat 3scale API Management Platform 2.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
- Fix · CNA rails (rails) Fixed in 8.1.4.1, 8.0.5.2
- Fix · GHSA-v924-7rp8-4mxh activestorage (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-v924-7rp8-4mxh activestorage (RubyGems) Fixed in 8.0.5.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
Not affected: 1 product
- Red Hat 3scale API Management Platform 2
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126186
- 2026-11-10 Alias added: GHSA-v924-7rp8-4mxh
- 2026-11-10 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-v924-7rp8-4mxh
- 2026-11-10 CVSS score added · GHSA-v924-7rp8-4mxh
- 2026-11-10 Weakness changed · GHSA-v924-7rp8-4mxh
- 2026-11-10 7 new references · GHSA-v924-7rp8-4mxh
- 2026-11-11 Affected versions changed · Red Hat
- 2026-11-11 CVSS score added · Red Hat
- 2026-11-12 Priority changed: MEDIUM → LOW
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-14 Affected versions changed · Red Hat
References
Other 7
- https://github.com/rails/rails/security/advisories/GHSA-v924-7rp8-4mxh
- https://github.com/rails/rails/commit/72136ff39153bc8d63ecbc899993848eb3d6573e
- https://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636
- 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-v924-7rp8-4mxh.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-126186 · CVE Program
- CVE-2026-126186 · NVD
- FIRST EPSS
- GHSA-v924-7rp8-4mxh · GitHub Advisory Database · CC BY 4.0
- CVE-2026-126186 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences