1-minute read
What a defender needs to know
Rails disclosed CVE-2026-66066, a critical Active Storage flaw that can let an unauthenticated attacker use a crafted image upload to read arbitrary files available to the application process. Affected applications use the vips processor, accept untrusted images, and run libvips with relevant third-party operations. The exposed process environment can contain secret_key_base, Rails master-key material, storage keys, database credentials, and third-party tokens.
The fix is Active Storage 7.2.3.2, 8.0.5.1, 8.1.3.1, or later with libvips 8.13 or later. A Rails-only update is insufficient on older libvips builds. The public record describes possible remote code execution and lateral movement but does not establish exploitation in the wild.
Inventory the deployed activestorage and libvips versions, the configured variant processor, and every untrusted-image upload path. Capture successful restart evidence for each web and worker process. Then replace secret_key_base, the Rails master key and decrypted credentials, storage and database keys, and third-party tokens. Remove old fallback values and verify each old credential fails.
Review upload, worker, cloud, database, and identity records for direct uploads labeled image/png whose bytes carry a MATLAB/HDF5 header, repeated small variant requests, and use of the application’s identities. The verification target is patched or removed upload paths, safe library configuration in every process, rejected old sessions and signing material, and downstream access reconciled through the replacement time. Published exploit mechanics improve recognition, while missing file-read or service-side telemetry remains a material blind spot.