# CVE-2026-126186: Active Storage: Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-11-10T21:14:22.083Z
- Modified: 2026-11-12T22:09:39.233Z
- Also known as: GHSA-v924-7rp8-4mxh
- Weaknesses: CWE-646
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rails rails: >= 8.1, < 8.1.4.1; < 8.0.5.2
- activestorage (RubyGems): from 8.1.0.beta1 before 8.1.4.1; before 8.0.5.2

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (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/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-v924-7rp8-4mxh.yml> (web)

## Sources

- CVE List: [CVE-2026-126186](https://www.cve.org/CVERecord?id=CVE-2026-126186), CVE Terms of Use, modified 2026-11-12
- GitHub Advisory Database: [GHSA-v924-7rp8-4mxh](https://github.com/advisories/GHSA-v924-7rp8-4mxh), CC-BY-4.0, modified 2026-11-10
- NVD: [CVE-2026-126186](https://nvd.nist.gov/vuln/detail/CVE-2026-126186), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-126186 · Whole record: https://cve.day/CVE-2026-126186.json · Rebuilt by cve.day 2026-11-25T22:59:50.295Z
