CVE-2026-66066 Exploitation Starts One Month After Patch, RCE Persists on Updated Rails 8.1.3.1
CVE-2026-66066 exploitation began four weeks after disclosure, exposing a bypass in the published patch that leaves RCE possible on updated servers. The vulnerability chain combines file-type confusion with deserialization to read secrets and execute code. Organizations must treat the current fix as incomplete and implement upload isolation.
The flaw stems from type confusion between Rails content-type handling and libvips magic-byte inspection. An attacker uploads a crafted MATLAB Level 5 file that libmatio routes to HDF5, whose External File List directive pulls arbitrary server files such as credential stores. This grants session forgery and lateral movement before any code execution. Roughly 7,000 exposed instances were enumerated in early August. VulnCheck testing showed the July patch blocks the libvips read primitive yet leaves the variation-key deserialization gadget intact when a valid signature is supplied. Original coverage understated this residual attack surface. Businesses running Rails with Active Storage and public image endpoints face direct exposure of database keys and storage credentials, enabling both data theft and subsequent RCE against customer-facing applications. Procurement records and job postings at affected organizations indicate many still rely on default libvips configurations without additional sandboxing. Individuals using Rails-based SaaS tools inherit the same risk through shared infrastructure. Full mitigation requires disabling untrusted uploads or moving to isolated processing pipelines rather than depending on the current partial fix. Continued scanning and PoC refinement are expected; operators should monitor Rails forensic tooling logs for HDF5 External File List patterns and rotate all secrets immediately.
VulnCheck: Exploitation volume on public Rails instances will surpass 15,000 unique attempts within 60 days.
Sources (3)
- [1]VulnCheck Exploitation Report(https://vulncheck.com/reports/kindarails2shell)
- [2]Ruby on Rails Security Advisory(https://guides.rubyonrails.org/security.html)
- [3]NIST NVD CVE-2026-66066(https://nvd.nist.gov/vuln/detail/CVE-2026-66066)