CVE-2026-126186: Active Storage: Possible arbitrary file read and remote code execution in video previews, analysis and image processing
Published 2026-11-10 · Updated 2026-11-10 · Also known as GHSA-v924-7rp8-4mxh
Summary
Active Storage is vulnerable to arbitrary file reading and remote code execution because it uses untrusted file extensions to select decoders for image and video processing. Engineering teams using Ruby on Rails must upgrade their Active Storage dependencies to secure file analysis and processing workflows.
Who is affected
Applications that accept untrusted file uploads and utilize Active Storage for video previewing, audio analysis, or ImageMagick processing are affected. Exploitation depends on the underlying system libraries, such as an FFmpeg build supporting AviSynth or specific ImageMagick decoder configurations, which may allow attackers to read sensitive application secrets or execute code.
Exploitability
The vulnerability carries a high CVSS 3.1 score of 8.8, reflecting its potential for complete system compromise. While the EPSS score of 0.005 suggests a low current probability of widespread automated exploitation, the flaw is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade to RubyGems activestorage version 8.1.4.1 or 8.0.5.2.
- If immediate upgrading is not possible, remove VideoPreviewer, VideoAnalyzer, and AudioAnalyzer from Active Storage configurations.
- If the AviSynth attack vector was applicable, rotate all application secrets, database credentials, and service tokens.
How to check your project
- Check the Gemfile.lock file for activestorage versions less than 8.0.5.2 or within the 8.1.x range prior to 8.1.4.1.
- Run 'bundle show activestorage' in the application directory to identify the currently installed version.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | activestorage |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update activestorage |
| RubyGems | activestorage |
>= 0, < 8.0.5.2 | 8.0.5.2 | bundle update activestorage |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What specifically causes this vulnerability?
ActiveStorage::Blob#open creates tempfiles that retain the user-supplied extension, causing tools like FFmpeg and ImageMagick to incorrectly identify the file type based on the extension rather than the actual file content.
Does this issue always lead to remote code execution?
No; RCE typically requires specific environment configurations, such as an FFmpeg build with AviSynth enabled, though other decoders triggered by manipulated extensions may still pose significant security risks.
What should I do if my system was potentially compromised?
If your environment met the conditions for exploitation, you must assume secrets were exposed and proceed to rotate all application keys, credentials, and tokens.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-v924-7rp8-4mxh
- WEB https://github.com/rails/rails/commit/72136ff39153bc8d63ecbc899993848eb3d6573e
- WEB https://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-v924-7rp8-4mxh.yml
Source records: GHSA-v924-7rp8-4mxh (OSV.dev) · EPSS by FIRST, 2026-11-21.