# CVE-2026-66066: Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.5
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.87% (percentile 88, 2026-11-26)
- **CWE:** CWE-1188
- **Aliases:** GHSA-xr9x-r78c-5hrm
- **Published:** 2026-07-30T18:23:33.000Z
- **Modified:** 2026-09-10T20:36:14.340Z

## 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

## 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

- RubyGems `activestorage`: affected \< 7.2.3.2; fixed 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)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm>
- patch: <https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e>
- patch: <https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5>
- patch: <https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a>
- exploit: <https://github.com/rails/rails-forensics-CVE-2026-66066>
- other: <https://github.com/rails/rails/releases/tag/v7.2.3.2>
- other: <https://github.com/rails/rails/releases/tag/v8.0.5.1>
- other: <https://github.com/rails/rails/releases/tag/v8.1.3.1>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml>
- other: <https://thehackernews.com/2026/07/critical-rails-flaw-could-let.html>
- other: <http://www.openwall.com/lists/oss-security/2026/07/29/9>
- other: <https://ethiack.com/info-hub/research/kindarails2shell-rails-rce-cve-2026-66066>
- other: <http://www.openwall.com/lists/oss-security/2026/08/01/6>
- other: <https://github.com/rails/rails>
- other: <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-66066>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-66066>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xr9x-r78c-5hrm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-66066> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-66066>
