Back to Feed
VulnerabilitiesNov 4, 2026

Critical Ruby on Rails Flaw Could Let Hackers Steal Server Secrets Through Malicious Image Uploads

Critical Ruby on Rails flaw allows unauthenticated users to upload crafted images and steal server secrets.

A critical vulnerability in Ruby on Rails Active Storage, rated CVSS 9.8, allows unauthenticated attackers to upload specially crafted images. This can lead to the server writing arbitrary files and, if using the Disk service, reading sensitive files like secret keys. The flaw stems from ImageMagick's handling of file formats and coders, which Active Storage did not sufficiently restrict.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run Active Storage?

Get an email when a new story names Active Storage, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

A CVSS 9.8 vulnerability in Ruby on Rails Active Storage allowed unauthenticated attackers to upload specially crafted images that exploited ImageMagick's handling of file formats and coders, ultimately enabling arbitrary file writes and reads of sensitive server files including secret keys. The root failure was twofold: Active Storage did not sufficiently restrict the file format handlers that ImageMagick was permitted to invoke, and organizations running unpatched versions remained exposed to a fully unauthenticated attack path. This matters because secret key theft can lead to full application compromise—attackers can forge session tokens, decrypt sensitive data, or pivot to deeper infrastructure access. The incident illustrates how third-party library integrations (ImageMagick) can silently expand an application's attack surface when not explicitly configured with least-privilege constraints.

What helps against this

How we list vendors

Indicators of Compromise

Addresses and file hashes are copied from the publisher's page by pattern matching. Names are picked by AI. On stories from before 17 November 2026, some addresses and hashes were picked by AI too. Not reviewed by an editor. How this works

  • cve: CVE-2026-66066

Entities

Active Storage (product)ImageMagick (technology)Ruby on Rails (product)Mini_magick (product)