CVE-2026-66066
activestorage: Active Storage: Remote Code Execution via Unsafe libvips Operations
Overview
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.
Source: OX vulnerability database
Severity
8.9 · CRITICAL
CVSS 3.1 base score, scored by redhat.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:L
Weakness: CWE-1188
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | activestorage | <7.2.3.2>=8.0.0.beta1, <8.0.5.1>=8.1.0.beta1, <8.1.3.1 | 7.2.3.28.0.5.18.1.3.1~> 7.2.3, >= 7.2.3.2~> 8.0.5, >= 8.0.5.1 |
Open a package to see all its vulnerabilities.
Operating systems · 23 fixes
SUSE Linux Enterprise 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
| 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
| 16.1 | python313-pillow +1 | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
chainguard 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| gitlab-rails-ce-18-10 | 18.10.8-r6 | |
| gitlab-rails-ce-fips-18-10 | 18.10.8-r7 | |
| gitlab-rails-ce-18-11 +1 | 18.11.8-r0 | |
| gitlab-rails-ce-18-8 | 18.8.11-r4 | |
| gitlab-rails-ce-18-9 | 18.9.8-r7 | |
| gitlab-rails-ce-fips-19-0 | 19.0.4-r9 |
4 more rows
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rails | affected |
| 12 | rails | 2:6.1.7.10+dfsg-1~deb12u3 |
| 13 | rails | 2:7.2.2.2+dfsg-2~deb13u2 |
| 14 | rails | 2:7.2.3.2+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | 2:6.1.7.10+dfsg-1~deb12u3 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | hawk2 | 2.7.2+git.1792148770.648dcddb-1.1 | openSUSE-SU-2026:12153-1 |
openSUSE Leap 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | openSUSE-SU-2026:22068-1 |
| 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | openSUSE-SU-2026:22305-1 |
| 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | openSUSE-SU-2026:22305-1 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2026/07/29/9
- www.openwall.com http://www.openwall.com/lists/oss-security/2026/08/01/6
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-66066
- blog.flatt.tech https://blog.flatt.tech/entry/kindarails2shell_rails
- ethiack.com https://ethiack.com/info-hub/research/kindarails2shell-rails-rce-cve
- ethiack.com https://ethiack.com/info-hub/research/kindarails2shell-rails-rce-cve-2026-66066
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails-forensics-CVE-2026-66066
- github.com https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e
- github.com https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5
Show all 23 references
- github.com https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a
- github.com https://github.com/rails/rails/releases/tag/v7.2.3.2
- github.com https://github.com/rails/rails/releases/tag/v8.0.5.1
- github.com https://github.com/rails/rails/releases/tag/v8.1.3.1
- github.com https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-66066
- rubygems.org https://rubygems.org/gems/activesupport/versions/7.2.3.2 - https://github.com/rails/rails/releases/tag/v7.2.3.2
- rubygems.org https://rubygems.org/gems/activesupport/versions/8.0.5.1 - https://github.com/rails/rails/releases/tag/v8.0.5.1
- rubygems.org https://rubygems.org/gems/activesupport/versions/8.1.3.1 - https://github.com/rails/rails/releases/tag/v8.1.3.1
- thehackernews.com https://thehackernews.com/2026/07/critical-rails-flaw-could-let.html
- www.cve.org https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-66066
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-66066
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.