Critical Ruby on Rails Vulnerability in Attackers’ Crosshairs
Source SecurityWeek
Mentioned vulnerabilities
Rated Critical by Threat Radar from the SecurityWeek text
Data as of 8 Sep 2026, 00:37 UTC
What to do
AI-suggested
Official patches for this vulnerability were released by Ruby on Rails in late July 2026. Immediate application of these patches is strongly recommended for all Rails applications that use libvips for Active Storage image processing and accept image uploads from untrusted users. Rails has also published forensic tools to detect exploitation attempts. Note that while the patch blocks the libvips file read vector, some remote code execution vectors involving Marshal deserialization may still be possible on patched servers, so monitoring and applying any subsequent updates is advised.
Description
KindaRails2Shell is a critical Ruby on Rails vulnerability (CVE-2026-66066) that allows unauthenticated attackers to read arbitrary files and execute code remotely. The flaw arises from inconsistent file type handling between Rails and the libvips image processing library, enabling crafted files to trick the system into reading sensitive files. This can expose secrets like credential databases and storage keys, facilitating session forgery, lateral movement, and remote code execution. Patches were released in late July 2026, and exploitation attempts have been observed since early August. However, some variations of the exploit may still succeed even on patched servers. Rails has provided forensic tools to detect exploitation attempts. Immediate patching is strongly advised for affected applications using libvips for Active Storage image processing with untrusted image uploads.