Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | before 7.2.3.2; 8.0.0.beta1 to before 8.0.5.1; 8.1.0.beta1 to before 8.1.3.1 | 7.2.3.2, 8.0.5.1, 8.1.3.1 | Patch available | CNA |
| — | activestorage (RubyGems) | before 7.2.3.2 | 7.2.3.2 | Patch available | GHSA-xr9x-r78c-5hrm |
| — | activestorage (RubyGems) | 8.0.0.beta1 to before 8.0.5.1 | 8.0.5.1 | Patch available | GHSA-xr9x-r78c-5hrm |
| — | activestorage (RubyGems) | 8.1.0.beta1 to before 8.1.3.1 | 8.1.3.1 | Patch available | GHSA-xr9x-r78c-5hrm |
- rails VendorRails Affected before 7.2.3.2; 8.0.0.beta1 to before 8.0.5.1; 8.1.0.beta1 to before 8.1.3.1 Fixed in 7.2.3.2, 8.0.5.1, 8.1.3.1 Patch available CNA
- activestorage (RubyGems) Vendor— Affected before 7.2.3.2 Fixed in 7.2.3.2 Patch available GHSA-xr9x-r78c-5hrm
- activestorage (RubyGems) Vendor— Affected 8.0.0.beta1 to before 8.0.5.1 Fixed in 8.0.5.1 Patch available GHSA-xr9x-r78c-5hrm
- activestorage (RubyGems) Vendor— Affected 8.1.0.beta1 to before 8.1.3.1 Fixed in 8.1.3.1 Patch available GHSA-xr9x-r78c-5hrm
Remediation
- Fix · CNA rails (rails) Fixed in 7.2.3.2, 8.0.5.1, 8.1.3.1
- Fix · GHSA-xr9x-r78c-5hrm activestorage (RubyGems) Fixed in 7.2.3.2 Advisory →
- Fix · GHSA-xr9x-r78c-5hrm activestorage (RubyGems) Fixed in 8.0.5.1 Advisory →
- Fix · GHSA-xr9x-r78c-5hrm activestorage (RubyGems) Fixed in 8.1.3.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 2 products
- Red Hat 3scale API Management Platform 2
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-66066
- 2026-10-03 Alias added: GHSA-xr9x-r78c-5hrm
- 2026-10-08 EPSS moved to the 95th–99th percentile
References
Other 11
- 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
- https://github.com/rails/rails
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-66066
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
- TI-2020-06581 Code injection in https://github.com/rails/rails CVSS 3.1HIGH 8.8
Sources
- CVE-2026-66066 · CVE Program
- CVE-2026-66066 · NVD
- FIRST EPSS
- GHSA-xr9x-r78c-5hrm · GitHub Advisory Database · CC BY 4.0
- CVE-2026-66066 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences