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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-10 · Modified: 2026-11-12
- Aliases: GHSA-v924-7rp8-4mxh, CGA-c3vc-vhq6-667m, CGA-cq9p-p8c9-rj9r, CGA-m449-gjqg-mxp5, CGA-r3pv-vcjj-f7w5, CGA-v9rr-vqpm-5h44, CGA-3jfx-q9xp-xfjf, CGA-3pw3-rm26-c9c3, CGA-3q27-jqr8-xhcj, CGA-58rh-5qpm-243m, CGA-5j9p-6pxh-fwmj, CGA-7gv8-wx66-3q66, CGA-c55m-3q2c-5h74, CGA-cjcf-wf76-fr7h, CGA-cw86-mmhq-w7vj, CGA-ff39-2q8x-2564, CGA-fvvf-35h4-wcr5, CGA-rhj9-gfgj-frvf, CGA-rp9q-g32j-gg98, CGA-wx7f-wf55-x5gj, CGA-xx3r-qx5r-jmhj, DEBIAN-CVE-2026-126186, CGA-276v-w5wc-6p84, CGA-2hp6-v77f-2pj9, CGA-2r6q-6jfh-42fm, CGA-4pwx-473v-qh9m, CGA-4rxx-wff2-p5fx, CGA-5h99-63j4-rqq4, CGA-5jgc-jjfr-pr7m, CGA-5xfh-qp9v-qvwf, CGA-6mgv-9c62-98mq, CGA-6vm6-f4jf-cr8x, CGA-9xm6-qw3q-4m98, CGA-fm87-hm5g-p45j, CGA-gpp4-jmq4-p278, CGA-hjch-5pv7-fqjv, CGA-hjh2-535v-7fq5, CGA-hq69-wc4p-5mwg, CGA-jv6f-v838-9m6c, CGA-m8f6-jp65-324x, CGA-qwhx-h2wp-fg5x, CGA-xxpr-vg7h-fcg8, CGA-xxw6-8cx8-c5m7, CGA-jf4g-2v45-w6wf, CGA-jvfx-88j7-cj3x, CGA-q9pp-cwpv-f54q, CGA-r92h-5qvj-5pwp, CGA-wp6x-785q-9m2r, UBUNTU-CVE-2026-126186, CGA-hf37-89fv-m3x5, CGA-rhx7-mm6q-fgc3, CGA-x2h2-393w-8wwr
- Record: https://cvemate.com/vulnerability/CVE-2026-126186 · JSON: https://cvemate.com/vulnerability/CVE-2026-126186/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.513%, percentile 45.238%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 36)

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)

## References

- <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>
- <https://security-tracker.debian.org/tracker/CVE-2026-126186>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126186.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126186>
- <https://ubuntu.com/security/CVE-2026-126186>
- <https://www.cve.org/CVERecord?id=CVE-2026-126186>

---

Data as of 2026-12-05T04:12:58.186Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
