Short answer: A critical flaw in Ruby on Rails lets attackers upload images that can write files to the server. Apps using ImageMagick for image processing are affected. Upgrade to the latest Rails version and MiniMagick gem.

TL;DR

  • Can write arbitrary files on the server.
  • Can read any file the app can read.
  • Upgrade to Rails 8.1.4.1 or 8.0.5.2.
  • Ensure MiniMagick gem is up to date.

What is CVE-2026-66066?

This issue is a serious security vulnerability in Ruby on Rails where attackers can upload specially crafted images to write files to the server. It affects apps that use ImageMagick for image processing. The flaw can also allow attackers to read sensitive files, such as secret keys and credentials, which could lead to remote code execution. To protect against this, update to the latest version of Rails and ensure the MiniMagick gem is at the required version.

RCE (remote code execution)
An attacker can run their own commands on someone else's computer or server over the internet.
Vulnerability
A mistake or weakness in software that an attacker can misuse.
Credentials / secrets
Passwords, keys and tokens that prove who you are to a system.

Key facts

Reported byThe Hacker News
Date reported04 Nov 2026
CVECVE-2026-66066
CVSS9.5 CRITICAL CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
WeaknessCWE-1188 (see NVD)
CISA KEVNot listed (no confirmed exploitation in KEV)
Vendor advisorygithub.com
Affected productRails
Published in NVD2026-07-30 (CVE-2026-66066)

How it works

Attack flow: Attacker reaches the Rails over the internet / network then No login or account is needed then Sends crafted input that triggers the flaw then Impact: data can be read, data or code can be changed, service crashes or stops
Built from the official CVSS vectors of CVE-2026-66066 (NVD)

A flaw in Ruby on Rails allows attackers to upload a special file that can write and read server files.

  1. Attacker reaches the Rails over the internet / network
  2. No login or account is needed
  3. Sends crafted input that triggers the flaw
  4. Impact: data can be read, data or code can be changed, service crashes or stops

Skillmate analyst mapping (our judgement, not from the vendor):

  • T1190 Exploit Public-Facing Application

Timeline

DateEventSource
2026-07-30CVE-2026-66066 published in NVDNVD
2026-11-04Reported by The Hacker NewsThe Hacker News
2026-11-09This Skillmate explainer publishedSkillmate

How to fix it

  1. Update Rails to the fixed release named in the vendor advisory.
  2. Read the vendor advisory for CVE-2026-66066 and upgrade to the fixed release it lists.
  3. If you cannot patch today, limit who can reach the affected service and watch its logs.

What is confirmed and what is not

ConfirmedNot confirmed yet
CVE-2026-66066 is a real NVD record scored 9.5 CRITICALCISA KEV does not list CVE-2026-66066 as exploited in the wild
Reported by The Hacker News
Reported by github.com
Reported by guides.rubyonrails.org
Reported by rubyonrails.org

Why it matters

Companies and users worldwide must update to fix this vulnerability to prevent unauthorized access and potential remote code execution.

Learn the skills behind this story

Want to understand attacks like this and defend against them? Join Skillmate cybersecurity training or practise hands-on in Skillmate Labs.

FAQ

What is Active Storage?

Active Storage is a component in Ruby on Rails that handles file uploads and storage, including images and documents.

How can attackers exploit this flaw?

Attackers can upload a crafted file that uses ImageMagick to write arbitrary files on the server and read sensitive files.

Which versions of Rails are affected?

Rails versions before 8.0.5.2 and 8.1 versions before 8.1.4.1 are affected.

What should I do to protect my application?

Upgrade to Rails 8.1.4.1 or 8.0.5.2 and apply the ImageMagick security policy. Check your configuration and update dependencies.

Sources

How we wrote this: facts come from the sources above, NVD and CISA KEV. An on-prem AI model drafted the plain-English parts and every sentence was checked against the sources; unsupported sentences were removed. MITRE mapping is our own judgement.