Skip to main content
← All vulnerabilities
CVE-2026-66066GHSA-XR9X-R78C-5HRM

Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.2.3.2, 8.0.5.1, 8.1.3.1
1 Metasploit module, 7 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • rails rails

    fixed in 7.2.3.2; From 8.0.0.beta1 · fixed in 8.0.5.1; From 8.1.0.beta1 · fixed in 8.1.3.1

  • activestorageRubyGems

    fixed in 7.2.3.2

  • activestorageRubyGems

    From 8.0.0.beta1 · fixed in 8.0.5.1

  • activestorageRubyGems

    From 8.1.0.beta1 · fixed in 8.1.3.1

References 17

GitHub · rails/rails

GitHub · rubysec/ruby-advisory-db

thehackernews.com

GitHub · rapid7/metasploit-framework

GitHub · 0xBlackash/CVE-2026-66066

GitHub · 0xsha/KindaRails2Shell

GitHub · HackSpeak/CVE-2026-66066

GitHub · Zer0SumGam3/CVE-2026-66066-POC

GitHub · ivanesk315/CVE-2026-66066

GitHub · rails/rails-forensics-CVE-2026-66066

GitHub · shinthink/CVE-2026-66066