Ruby on Rails released security updates for CVE-2026-66066, a critical Active Storage vulnerability rated CVSS 9.5 that could allow unauthenticated attackers to read arbitrary files from application servers through crafted image uploads. The issue affects applications that use libvips for Active Storage image processing and accept untrusted image uploads, creating a trust-boundary failure in which Rails passes attacker-controlled attachments to unsafe libvips operations. Exposed data could include secret_key_base, the Rails master key, database credentials, cloud storage credentials, and API tokens.
Rails published patched releases 7.2.3.2, 8.0.5.1, and 8.1.3.1, which also appeared in the project's GitHub release tags. Deployments must also use libvips 8.13+ and ruby-vips 2.2.1+ where ruby-vips is installed, while applications on end-of-life Rails 7.0 and 7.1 must upgrade to a supported branch. Rails advised operators to rotate any secrets readable by the application process after patching; at the time of reporting, no public proof-of-concept or confirmed in-the-wild exploitation had been disclosed, and CISA had not added the flaw to its Known Exploited Vulnerabilities catalog.

See affected versions and whether adversaries are exploiting it.
6 events from the most recent confirmed update back to the earliest known activity.
Rails disclosed full attack details for CVE-2026-66066 earlier than originally planned after researchers reverse-engineered the issue and published proof-of-concept material. The Rails team also published forensic guidance and assessment tools in the rails/rails-forensics-CVE-2026-66066 repository to help administrators determine exposure and possible exploitation.
A GitHub pull request in the projectdiscovery/nuclei-templates repository introduced a Nuclei template for CVE-2026-66066, describing the issue as a Rails Active Storage arbitrary file read and remote code execution flaw. On July 31, 2026, the PR showed workflow activity including self-assignment, automated reviewer assignment, and a "Ready to merge" label.
A GitHub pull request introduced an initial draft Metasploit module for CVE-2026-66066, described as a Ruby on Rails Active Storage Vips RCE module and labeled "KindaRails2Shell." The item was added to the Metasploit Kanban board and moved to the Todo column on July 30, 2026.
Ruby on Rails released versions 7.2.3.2, 8.0.5.1, and 8.1.3.1 on July 29, 2026. These releases were issued to fix CVE-2026-66066 affecting Active Storage when used with libvips.
Akamai published a warning on CVE-2026-66066, referred to the attack chain as KindaRails2Shell, and released web application firewall protections for customers. The company said it coordinated with Ethiack before public disclosure to prepare those protections.
A technical write-up titled "KindaRails2Shell" described how a malicious MATLAB .mat file declared as image/png could be used against a default Ruby on Rails application to chain arbitrary file read into remote code execution. The summary says the exploit could achieve code execution as root and attributes the research to Ethiack.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
47 references tracked. Mallory keeps watching after this page renders.
xakep.ru
Open sourceinfoworld.com
Open sourceboho.or.kr
Open sourcescworld.com
Open sourcegithub.com
Open sourceopenwall.com
Open sourcediscuss.rubyonrails.org
Open sourcedoi.org
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.