Skip to content

Get notified

Get an email when a new major security incident drops. No spam, unsubscribe any time.

Only used for pwn.watch incident emails. Protected by Cloudflare Turnstile.

Become a sponsor

One slot: pwn.watch, gifs.so, flavors.design, kitze.io, every kitze repo, and an X shout-out.

Secure checkout on Polar. Right after paying you set up your ad on kitze.io.

LivePatchedPatch now

Rails Active Storage critical file write and read via crafted ImageMagick uploads (GHSA-f3w6-w445-fwh9)

Ruby on Rails Active Storage (activestorage gem)

Brought to you byTinkerer Club

The private club for people who own their servers, run their own AI, and pay $0/month for software.

A critical (CVSS 9.8) flaw in Rails Active Storage lets an unauthenticated attacker write arbitrary files on the server by uploading a crafted file, and, when attachments use the Disk service, read any file the app can read, including secret_key_base and credentials for other systems, which may lead to remote code execution. Active Storage put no limits on which ImageMagick coders an upload could reach, and its ImageMagick analyzer runs on attach, so simply attaching the upload is enough; the reported chain used an SVG reaching the MSL scripting coder. Apps are affected if they use ImageMagick for Active Storage (variant_processor :mini_magick, the default for load_defaults 6.1 or earlier), run a host ImageMagick policy that doesn't block those coders (Debian and Ubuntu's policies don't), and accept untrusted uploads. Fixed in activestorage 8.1.4.1 and 8.0.5.2, which ship a restrictive ImageMagick policy and need mini_magick 5.1 or later; series before 8.0 get no fix. No CVE yet; the advisory does not say whether it has been exploited.

Why this severity: CVSS 9.8, unauthenticated, triggered by attaching an upload; no exploitation reported in the advisory

Started
Nov 4, 2026

Follow this incident

Discuss on X ↗

Affected

  • activestorage < 8.0.5.2
  • activestorage >= 8.1, < 8.1.4.1
  • Only apps using ImageMagick (:mini_magick) for Active Storage that accept untrusted uploads

Fixed in

  • activestorage 8.1.4.1
  • activestorage 8.0.5.2 (requires mini_magick >= 5.1 when using :mini_magick)
  • Rails before 8.0: no fix; copy the shipped policy.xml rules (deny MSL, Ghostscript coders and the gs delegate) into the system ImageMagick policy

Timeline2

  1. Rails publishes GHSA-f3w6-w445-fwh9 (critical, CVSS 9.8) and releases Rails 8.1.4.1 and 8.0.5.2, which ship an ImageMagick security policy; reported via HackerOne by RyotaK (GMO Flatt Security).

  2. The Hacker News reports the flaw; the same releases fix a second Active Storage issue, GHSA-v924-7rp8-4mxh (high, CVSS 8.8), and 21 security issues in total.

Advisories1

News & write-ups1

Get an email when a new major security incident drops. No spam, unsubscribe any time.