What to do4 steps
Upgrade
activestorageto 7.2.3.2, 8.0.5.1 or 8.1.3.1.Make sure libvips is at least 8.13.
Rotate secrets after upgrading.
This covers
secret_key_base, the master key, storage, database and third-party credentials.Until you upgrade, set
VIPS_BLOCK_UNTRUSTED.This needs libvips 8.13 or newer. You can call
Vips.block_untrusted(true)(ruby-vips 2.2.1+) in an initializer instead.Remove libvips if it is older than 8.13.
There is no other workaround.
Are you affected?only if all are true
- Both must hold: Active Storage uses libvips (variant_processor :vips, the default under load_defaults 7.0+) and the app accepts image uploads from untrusted users.
- No authentication. The direct impact is arbitrary file read (including secret_key_base); RCE follows from the leaked secrets.
- Per Rapid7: the documented chain needs the direct-upload route (mounted by default) and a libvips build with matload. MiniMagick is not affected.
Check your version
- Bundler, in the app directory
bundle info activestorage - libvips
vips --version - Prompt for your own agent, read-onlyAm I affected by KindaRails2Shell?
Read the prompt
Check whether the systems I am authorized to inspect are affected by KindaRails2Shell (CVE-2026-66066). Active Storage variant processing with libvips trusts the client-supplied content type; an upload disguised as a MATLAB file reads arbitrary files, and the stolen secrets lead to RCE. It is exploitable under these conditions: - Both must hold: Active Storage uses libvips (variant_processor :vips, the default under load_defaults 7.0+) and the app accepts image uploads from untrusted users. - No authentication. The direct impact is arbitrary file read (including secret_key_base); RCE follows from the leaked secrets. - Per Rapid7: the documented chain needs the direct-upload route (mounted by default) and a libvips build with matload. MiniMagick is not affected. Fixed releases: - activestorage: 7.2.3.2 (branch 7.2), 8.0.5.1 (branch 8.0), 8.1.3.1 (branch 8.1) Also requires libvips 8.13 or newer, and rotating secrets after the upgrade. Commands the catalog lists to find the version or the setting (read each one before you run it): - Bundler, in the app directory: bundle info activestorage - libvips: vips --version What the catalog says to do on an affected system (report these, do not carry them out): 1. Upgrade activestorage to 7.2.3.2, 8.0.5.1 or 8.1.3.1. 2. Rotate secrets after upgrading. 3. Until you upgrade, set VIPS_BLOCK_UNTRUSTED. 4. Remove libvips if it is older than 8.13. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://rails.2shell.wtf/kindarails2shell
Affected versions3 branches
| activestorage branch | Fixed in |
|---|---|
| 7.2 | 7.2.3.2 |
| 8.0 | 8.0.5.1 |
| 8.1 | 8.1.3.1 |
Also requires libvips 8.13 or newer, and rotating secrets after the upgrade.
Proof of concept1 public PoC
For testing systems you own or are authorized to test. A PoC repository can be fake or carry malware: read it before you run it.
- Open the PoC
Researchers reverse-engineer the fix and publish proof-of-concept code; Rails publishes technical details and forensic tools early
Timeline2 events
Patched
Rails advisory and fixed activestorage releases
Public PoC
Researchers reverse-engineer the fix and publish proof-of-concept code; Rails publishes technical details and forensic tools early
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.
5 changes since it was published
- 'Found by' now shows one finder, Ethiack; GMO Flatt Security (RyotaK), co-credited in the advisory, is recorded as a reporter.
- Remediation steps got short titles; no fact changed.
- Exploit status: researchers published proof-of-concept code on 31 July 2026 (Rapid7).
- Added commands to check the installed version.
- Added exploit conditions from GHSA-xr9x-r78c-5hrm and Rapid7.