Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

CVE-2026-66066: Rails Active Storage may expose files and allow code execution

CVE-2026-66066 · published 3 months ago
Summary

Versions of Rails before the latest patches that use Active Storage with the libvips image library can be tricked into processing a malicious upload. This can let an unauthenticated attacker read any file the Rails process can access, including secret keys, and possibly run code on the server. Upgrade Rails to the newest released version to close the issue.

What to do
  • Update david heinemeier hansson activestorage to version 7.2.3.2.
  • Update david heinemeier hansson activestorage to version 8.0.5.1.
  • Update david heinemeier hansson activestorage to version 8.1.3.1.
  • Update debian rails to version 2:7.2.3.2+dfsg-1.
  • Update debian rails to version 2:7.2.2.2+dfsg-2~deb13u2.
Affected software
Ecosystem VendorProductAffected versions
rubygems david heinemeier hansson activestorage < 7.2.3.2
>= 8.0.0.beta1, < 8.0.5.1
>= 8.1.0.beta1, < 8.1.3.1
Fix: upgrade to 7.2.3.2
Ubuntu:Pro:16.04:LTS canonical rails All versions
Ubuntu:Pro:18.04:LTS canonical rails All versions
Ubuntu:Pro:20.04:LTS canonical rails All versions
Ubuntu:Pro:22.04:LTS canonical rails All versions
Ubuntu:24.04:LTS canonical rails All versions
Ubuntu:26.04:LTS canonical rails All versions
– rails rails < 7.2.3.2
Debian:11 debian rails All versions
Debian:12 debian rails All versions
Debian:13 debian rails < 2:7.2.2.2+dfsg-2~deb13u2
Fix: upgrade to 2:7.2.2.2+dfsg-2~deb13u2
Debian:14 debian rails < 2:7.2.3.2+dfsg-1
Fix: upgrade to 2:7.2.3.2+dfsg-1
Original advisory text
Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
Action Pack is a framework for handling and responding to web requests. In versions prior to 7.2.3.2, 8.0.5.1 and 8.1.3.1, Active Storage does not disable libvips operations marked unsafe for untrusted content, allowing a crafted upload to invoke such an operation. Consuming applications are affected when configured to use libvips and accept image uploads from untrusted users. An unauthenticated attacker may exploit this behavior to read arbitrary files accessible to the Rails process, including environment variables and application secrets. Exposure of credentials such as secret_key_base or external-service tokens may enable remote code execution or lateral movement. This issue has been fixed in versions 7.2.3.2, 8.0.5.1 and 8.1.3.1.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
9.9 Critical
Exploitation
30% chance of attack within 30 days
Type
CWE-1188Initialization of a Resource with an Insecure Default
Timeline
Published30 Jul 2026
Updated29 Oct 2026
First seen30 Jul 2026
Track software like this
Free during beta