# Critical Rails Flaw Lets Attackers Write Server Files via Crafted ImageMagick Uploads

DevFeed: [Critical Rails Flaw Lets Attackers Write Server Files via Crafted ImageMagick Uploads](<https://devfeed.tech/articles/critical-rails-flaw-lets-attackers-write-server-files-via-crafted-imagemagick-uploads-117068.md>)

Original publisher: [Read original article](<https://thehackernews.com/2026/11/critical-rails-flaw-lets-attackers.html>)

Author: The Hacker News

Published: 2026-11-04T12:07:04Z

Content type: news

Language: en

Sources: [Cyber Newsroom](<https://devfeed.tech/sources/cyber-newsroom.md>)

Topics: [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>), [ImageMagick](<https://devfeed.tech/topics/imagemagick.md>), [code security](<https://devfeed.tech/topics/code-security.md>), [bug](<https://devfeed.tech/topics/bug.md>)

Tags: [active-storage](<https://devfeed.tech/tags/active-storage.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [critical](<https://devfeed.tech/tags/critical.md>), [cve](<https://devfeed.tech/tags/cve.md>), [files](<https://devfeed.tech/tags/files.md>), [imagemagick](<https://devfeed.tech/tags/imagemagick.md>), [rails](<https://devfeed.tech/tags/rails.md>), [ruby-on-rails](<https://devfeed.tech/tags/ruby-on-rails.md>), [server](<https://devfeed.tech/tags/server.md>), [uploads](<https://devfeed.tech/tags/uploads.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>), [web-security](<https://devfeed.tech/tags/web-security.md>), [write](<https://devfeed.tech/tags/write.md>)

## AI overview

Rails' Active Storage flaw can let an unauthenticated uploader write server files when uploads are analyzed with ImageMagick and its policy permits the relevant coders. In Disk service apps, the attacker may also read files available to the app, including secrets that could enable further compromise. Exposure requires ImageMagick processing via `:mini_magick`, an ImageMagick policy that does not block the involved coders, and untrusted uploads. Rails says attaching a file is enough to trigger analysis; variants or previews are not required. Upgrade to Rails 8.1.4.1 or 8.0.5.2, and use mini_magick 5.1 or later with `:mini_magick`; verify the shipped policy is loaded and check whether app or system ImageMagick settings override it. GraphicsMagick does not use that policy. If upgrading is not possible, Rails recommends applying the shipped rules in ImageMagick's system policy, at minimum blocking MSL and Ghostscript coders and the `gs` delegate. Disk service apps should rotate secrets the app can read. The excerpt says exploitation status is unknown.

## Source excerpt

Critical Rails Flaw Lets Attackers Write Server Files via Crafted ImageMagick Uploads A critical flaw in Ruby on Rails could allow an unauthenticated attacker to write arbitrary files on an app's server by uploading a crafted file if the app processes uploads using ImageMagick. The Rai ... Read more Published Date: Nov 04, 2026 (4 hours, 55 minutes ago) Vulnerabilities has been mentioned in this article. CVE-2026-66066