CVE-2026-66066
Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
Also known as GHSA-xr9x-r78c-5hrm
Mitigation
- Upgrade activestorage to one of 7.2.3.2, 8.0.5.1, 8.1.3.1 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package activestorage (< 7.2.3.2)
- Anyone running rails < 7.2.3.2; >= 8.0.0.beta1, < 8.0.5.1; >= 8.1.0.beta1, < 8.1.3.1
Vulnerability facts
- Affected
- activestorage < 7.2.3.2
- Fixed in
- 7.2.3.2, 8.0.5.1, 8.1.3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.5 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 2.87% chance of exploitation in 30 days (percentile 88, 2026-11-26)
- CWE
- CWE-1188
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems activestorage | < 7.2.3.2 | 7.2.3.2, 8.0.5.1, 8.1.3.1 | osv |
| rails | < 7.2.3.2; >= 8.0.0.beta1, < 8.0.5.1; >= 8.1.0.beta1, < 8.1.3.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-66066. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-66066.md Affected: activestorage < 7.2.3.2 Fixed in: 7.2.3.2, 8.0.5.1, 8.1.3.1 Steps: 1. Search this machine and project for activestorage (RubyGems), rails: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
Exploits and PoCs
Other
- 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
- 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
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-66066
FAQ
Is CVE-2026-66066 being exploited?
There is no confirmed exploitation: CVE-2026-66066 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.87% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-66066?
Critical: CVSS 9.5 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-66066?
activestorage < 7.2.3.2.
Is there a fix for CVE-2026-66066?
Yes. Fixed in 7.2.3.2, 8.0.5.1, 8.1.3.1. Upgrade activestorage to one of 7.2.3.2, 8.0.5.1, 8.1.3.1 (or later in the same release line).
How do I check if I'm affected by CVE-2026-66066?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.