Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
CVE-2026-66066Published 30 Jul 2026, 18:32 UTC
Real-world risk
4.5/ 10Medium
Schedule in the normal cycle
If the vulnerable configuration applies to you: 10.0
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.5
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Ruby on RailsWidespread | < 7.2.3.2; >= 8.0.0.beta1, < 8.0.5.1; >= 8.1.0.beta1, < 8.1.3.1 | 7.2.3.2, 8.0.5.1, 8.1.3.1 |
What to do
Update to a fixed version: 7.2.3.2, 8.0.5.1, 8.1.3.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T4: Weaponized (× 1.00)
A Metasploit module, a Nuclei template, or a verified Exploit-DB entry
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Metasploit module (link)
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 32.9% chance of exploitation in 30 days (percentile 98), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T4: Weaponized1.000
- 10 × impact 1 × prerequisites 0.45 × threat 14.500
- Rounded to one decimal between 0.1 and 104.5
Exploitation and evidence timeline
- 30 Jul 2026 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Metasploit module first seen
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 4.5 (cvss fallback)
Weakness
CWE-1188
References
- https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrmvendor-advisory
- https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1emisc
- https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5misc
- https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49amisc
- https://github.com/rails/rails/releases/tag/v7.2.3.2misc
- https://github.com/rails/rails/releases/tag/v8.0.5.1misc
- https://github.com/rails/rails/releases/tag/v8.1.3.1misc
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.ymlmisc
- https://thehackernews.com/2026/07/critical-rails-flaw-could-let.htmlmisc
- http://www.openwall.com/lists/oss-security/2026/07/29/9
- https://ethiack.com/info-hub/research/kindarails2shell-rails-rce-cve-2026-66066
- http://www.openwall.com/lists/oss-security/2026/08/01/6
- https://github.com/rails/rails-forensics-CVE-2026-66066exploit
- CVE-2026-66066 on CVE.org