Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rails | rails | < 7.2.3.2, >= 8.0.0.beta1, < 8.0.5.1, >= 8.1.0.beta1, < 8.1.3.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rails | 2:7.2.3.2+dfsg-1 | — |
| Debian 13 | rails | 2:7.2.2.2+dfsg-2~deb13u2 | — |
| Debian 12 | rails | 2:6.1.7.10+dfsg-1~deb12u3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | rails | No fix yet | — |
| Ubuntu 26.04 LTS | rails | No fix yet | — |
| Ubuntu 24.04 LTS | rails | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 20.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 18.04 LTS | rails | No fix yet | — |
| Ubuntu Pro 16.04 LTS | rails | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24250-1 |
| SLES 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | hawk2 | 2.7.2+git.1792148770.648dcddb-1.1 | openSUSE-SU-2026:12153-1 |
| openSUSE Leap 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | openSUSE-SU-2026:22068-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution
exploit/multi/http/rails_activestorage_vips_rce
GitHub 7 repositories
-
rails/rails-forensics-CVE-2026-66066 ★ 30 · Jul 30, 2026
-
Zer0SumGam3/CVE-2026-66066-POC ★ 23 · Jul 29, 2026
PoC for CVE-2026-66066 in Ruby on Rails
-
0xsha/KindaRails2Shell ★ 5 · Jul 31, 2026
CVE-2026-66066 + File Read, RCE, Scanner, Lab
-
HackSpeak/CVE-2026-66066 ★ 4 · Aug 3, 2026
CVE-2026-66066 (KindaRails2Shell) PoC - Rails Active Storage/libvips arbitrary file read to RCE; for authorized security testing
-
shinthink/CVE-2026-66066 ★ 1 · Aug 4, 2026
CVE-2026-66066 — KindaRails2Shell: Rails Active Storage/libvips Arbitrary File Read → RCE. MATLAB/HDF5 dual-identity file → SECRET_KEY_BASE theft → forged variation. CVSS 9.5 | Rails < 8.1.3.1
-
ashrafzaryouh/CVE-2026-66066 ★ 1 · Jul 29, 2026
CVE-2026-66066
-
ivanesk315/CVE-2026-66066 ★ 0 · Sep 10, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | activestorage | < 7.2.3.2 | 7.2.3.2 | GHSA-xr9x-r78c-5hrm |
| RubyGems | activestorage | >= 8.0.0.beta1, < 8.0.5.1 | 8.0.5.1 | GHSA-xr9x-r78c-5hrm |
| RubyGems | activestorage | >= 8.1.0.beta1, < 8.1.3.1 | 8.1.3.1 | GHSA-xr9x-r78c-5hrm |
Advisories 6
- WID-SEC-2026-2574 Ruby on Rails: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Oct 29, 2026
- SUSE-SU-2026:24250-1 Security update for hawk2 SUSE / openSUSE Security Updates · Oct 21, 2026
- SUSE-SU-2026:24195-1 Security update for hawk2 SUSE / openSUSE Security Updates · Oct 21, 2026
- openSUSE-SU-2026:22068-1 Security update for hawk2 SUSE / openSUSE Security Updates · Oct 19, 2026
- openSUSE-SU-2026:12153-1 hawk2-2.7.2+git.1792148770.648dcddb-1.1 on GA media SUSE / openSUSE Security Updates · Oct 17, 2026
- WID-SEC-2026-2958 IBM License Metric Tool: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 4, 2026
References
- https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm
- https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e
- https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5
- https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a
- https://github.com/rails/rails/releases/tag/v7.2.3.2
- https://github.com/rails/rails/releases/tag/v8.0.5.1
- https://github.com/rails/rails/releases/tag/v8.1.3.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml
- https://thehackernews.com/2026/07/critical-rails-flaw-could-let.html