
UpTrajectory Review
A critical flaw in Ruby on Rails, CVE-2026-66066, lets an attacker upload a disguised file that Rails treats as an image but executes as code. Disclosed on 07/30/2026 and scored 9.5 out of 10, the bug lives in Active Storage, the Rails component that handles user uploads to cloud or disk. Security researchers call it "KindaRails2Shell." The flaw works without any login: an unauthenticated visitor uploads a crafted file, and the server processes it through the libvips image library. Because libvips contains operations that developers never hardened against hostile input, the file can trick the server into reading sensitive files or running attacker commands. Rails released fixes in versions 7.2.3.2, 8.0.5.1, and 8.1.3.1.
If your business runs a Rails app that accepts user uploads — product photos, profile pictures, document scans, invoice attachments — this bug puts your entire server at risk. David Shipley of Beauceron Security told CSO Online that the attacker's true power lies in uploading "an image that isn't actually an image [but] is code that allows them to steal secrets." For a small e-commerce shop, a SaaS startup, or a local service platform, that means customer data, payment tokens, API keys, and database credentials could leak through a single upload form. You do not need a security team to feel the pain; you need a patch.
What stands out here is not the vulnerability itself but the supply-chain angle. Rails depends on libvips, a third-party image library with known weak spots that the Rails team did not defend against. This is a pattern we see repeatedly: a popular framework trusts a downstream library, and the flaw in that library becomes a flaw in every app built on the framework. The Rails community maintains nearly two million lines of prebuilt code, and the 1,000+ engineers who contribute cannot audit every dependency. That reality makes quick patching not just a best practice but the only reliable defense.
Not every Rails app faces the same exposure. Apps that use Active Storage with libvips for image variants are at highest risk. Apps that store uploads without processing them, or that use a different image processor, face less immediate danger. Still, the unauthenticated nature of the attack means any public upload endpoint is a potential entry point. Downstream, the cost of a breach extends beyond data loss: regulatory fines, customer churn, and reputational damage can dwarf the engineering time required to update a gem.
Watch for follow-up reports on exploitation in the wild. Attackers often reverse-engineer patches within days, and a 9.5-scored bug with a clear attack path will attract attention. If you run Rails, check your Gemfile.lock for the Active Storage version, update to the patched release, and restart your application. If you lack in-house Ruby expertise, hire a contractor or reach out to your hosting provider for guidance. Do not wait for a scan to flag the issue; the window between disclosure and active exploitation grows shorter every year.
“The ‘chef’s kiss’ is the ability for an attacker to upload an image that isn’t actually an image [but] is code that allows them to steal secrets.” — CSO Online
Takeaway: If your Rails app accepts user uploads, update Active Storage to 7.2.3.2, 8.0.5.1, or 8.1.3.1 immediately and restart your server.
Excerpt from the original — CSO Online
A new critical vulnerability in the Ruby on Rails (“Rails”) web application framework, CVE-2026-66066, could turn a seemingly innocuous image into a front door to your secrets.
Disclosed July 30, the high severity CVE (scored 9.5 out of 10) poses a significant risk to enterprises running apps that handle user-uploaded images in Rails.
Dubbed “KindaRails2Shell,” it targets the overly-trusting Active Storage component of the open-source framework, allowing unauthenticated attackers to read sensitive files or escalate to remote code execution (RCE).
The issue has been fixed in versions 7.2.3.2, 8.0.5.1 and 8.1.3.1 of Active Storage; enterprises running Rails should update immediately.
“The ‘chef’s kiss’ is the ability for an attacker to upload an image that isn’t actually an image [but] is code that allows them to steal secrets,” said David Shipley of Beauceron …