Critical RCE Vulnerability CVE-2026-66066 Affects Ruby on Rails Active Storage with libvips

A severe vulnerability tracked as CVE-2026-66066 has been identified in the Ruby on Rails web application framework. The flaw, also referred to as KindaRails2Shell by researchers, impacts applications that use Active Storage with the libvips image processing engine. Attackers can exploit the issue by uploading specially crafted files to read arbitrary files without authentication. This exposure may lead to theft of environment variables, secret keys, and external service credentials, enabling remote code execution or further attacks. The vulnerability stems from unsafe operations in the dependent libvips library. It carries a CVSS v4.0 base score of 9.5 and is rated Critical. JPCERT/CC has issued an advisory urging immediate updates.

Security NEXTTranslated from Japanese

Read at source

A critical vulnerability CVE-2026-66066 has been discovered in the popular web application framework Ruby on Rails. The issue, nicknamed KindaRails2Shell by some researchers, affects deployments that rely on Active Storage combined with the libvips image processing engine.

The flaw originates from unsafe operations permitted in the libvips dependency library. By uploading a specially crafted file, an unauthenticated attacker can read arbitrary files on the server. This capability may expose process environment variables, secret keys, and authentication credentials for external services.

Once sensitive data is obtained, attackers can leverage it to execute arbitrary code remotely or chain the access into broader compromise. The vulnerability is difficult to mitigate with web application firewalls, making prompt patching the primary defense.

The CVSS v4.0 base score is 9.5, placing the issue in the highest severity category of Critical. JPCERT/CC has published an advisory recommending immediate updates to affected Ruby on Rails installations.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulnerabilities & Exploits

Telegram for Android Patches Voice Call Vulnerability Enabling Code Execution
Yandex Patches Millions of Stations After eMudhra Certificate Keys Compromised
Cisco ASA and FTD Face DoS Vulnerability in SSL VPN Already Exploited in the Wild