CVE-2026-66066
Reported by github_m · Published July 30, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| gitlab-rails-ce-18.10 | Chainguard | 18.10.8-r6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rails | rails | < 7.2.3.2, >= 8.0.0.beta1, < 8.0.5.1, >= 8.1.0.beta1, < 8.1.3.1 |
| chainguard | gitlab-rails-ce-18.10 | 0 |
| rails | rails | 8.0.0.beta1, 0, 8.1.0.beta1 |
| chainguard | gitlab-rails-ce-fips-19.0 | 0 |
| chainguard | gitlab-rails-ce-fips-18.10 | 0 |
| chainguard | gitlab-rails-ce-18.8 | 0 |
| chainguard | pghero | 0 |
| chainguard | gitlab-rails-ce-18.9 | 0 |
| chainguard | gitlab-rails-ce-18.11 | 0 |
| chainguard | gitlab-rails-ce-fips-18.11 | 0 |
| chainguard | gitlab-rails-ce-fips-19.2 | 0 |
| chainguard | gitlab-rails-ce-19.0 | 0 |
| chainguard | ruby3.3-rails-8.0 | 0 |
| chainguard | pghero-fips | 0 |
| RubyGems | activestorage | 0, 8.0.0-beta.1, 8.1.0-beta.1 |
Timeline
- Jul 29, 2026 VulnCheck XDB Entry (5 in total, the first dated here)
- Jul 30, 2026 CVE Published
- Jul 31, 2026 Coalition ESS Score
- Jul 31, 2026 Security Advisory
- Aug 7, 2026 EPSS Score (11 in total, the first dated here)
- Aug 25, 2026 VulnCheck KEV Exploitation (4 in total, the first dated here)
- Sep 28, 2026 PoC Published
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-66066
vulnetix vdb fixes CVE-2026-66066
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-66066/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm x_refsource_CONFIRM
- https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e x_refsource_MISC
- https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5 x_refsource_MISC
- https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a x_refsource_MISC
- https://github.com/rails/rails/releases/tag/v7.2.3.2 x_refsource_MISC
- https://github.com/rails/rails/releases/tag/v8.0.5.1 x_refsource_MISC
- https://github.com/rails/rails/releases/tag/v8.1.3.1 x_refsource_MISC
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml x_refsource_MISC
- https://thehackernews.com/2026/07/critical-rails-flaw-could-let.html x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-66066 advisory
- https://github.com/advisories/GHSA-xr9x-r78c-5hrm advisory
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-66066 url
- http://www.openwall.com/lists/oss-security/2026/07/29/9 url
- https://ethiack.com/info-hub/research/kindarails2shell-rails-rce-cve-2026-66066 url
- http://www.openwall.com/lists/oss-security/2026/08/01/6 url
- https://github.com/rails/rails-forensics-CVE-2026-66066 exploit
- What is CVE-2026-66066? Protecting Your Rails App from Active Storage RCE third-party-analysis
- Blog third-party-analysis