CVSS 4.0
9.5 criticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HKnown as KindaRails2Shell
Critical (9.5) in rails rails. EPSS 33% estimated probability of exploitation activity in the next 30 days. Fixed in activestorage 7.2.3.2, 8.0.5.1, 8.1.3.1.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:Hactivestorage (RubyGems): fixed in 7.2.3.2, 8.0.5.1, 8.1.3.1Explain CVE-2026-66066 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-66066?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-66066?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-66066 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| rails | < 7.2.3.2 |
| rails | >= 8.0.0.beta1, < 8.0.5.1 |
| rails | >= 8.1.0.beta1, < 8.1.3.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xr9x-r78c-5hrm | RubyGems | activestorage | <7.2.3.2 | 7.2.3.2 |
| GHSA-xr9x-r78c-5hrm | RubyGems | activestorage | >=8.0.0.beta1 <8.0.5.1 | 8.0.5.1 |
| GHSA-xr9x-r78c-5hrm | RubyGems | activestorage | >=8.1.0.beta1 <8.1.3.1 | 8.1.3.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | rails | 2:6.1.7.10+dfsg-1~deb12u3 | DEBIAN-CVE-2026-66066 DLA-4829-1 |
| Debian | 13 | rails | 2:7.2.2.2+dfsg-2~deb13u2 | DEBIAN-CVE-2026-66066 DSA-6546-1 |
| Debian | 14 | rails | 2:7.2.3.2+dfsg-1 | DEBIAN-CVE-2026-66066 |
| Ubuntu | 24.04:LTS, 26.04:LTS, 26.10 and 4 more | rails | no fix listed | UBUNTU-CVE-2026-66066 |
| SUSE | Linux Enterprise High Availability Extension 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24195-1 |
| SUSE | Linux Enterprise High Availability Extension 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE | Linux Enterprise High Availability Extension 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24712-1 |
| SUSE | Linux Enterprise Server 16.1, Linux Enterprise Server for SAP applications 16.1 | python-Pillow | 11.3.0-160100.3.1 | SUSE-SU-2026:24712-1 |
| SUSE | Linux Enterprise Server for SAP applications 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | SUSE-SU-2026:24250-1 |
| SUSE | Linux Enterprise Server for SAP applications 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | SUSE-SU-2026:24722-1 |
| SUSE | Linux Enterprise Server for SAP applications 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | SUSE-SU-2026:24722-1 |
| openSUSE | Leap 16.0 | hawk2 | 2.7.2+git.1788518533.7d4dadd6-160000.1.1 | openSUSE-SU-2026:22068-1 |
| openSUSE | Leap 16.1 | hawk-apiserver | 0.2.4+git.1792406875.6ed758a-160100.1.1 | openSUSE-SU-2026:22305-1 |
| openSUSE | Leap 16.1 | hawk2 | 2.7.2+git.1789128469.a738abc1-160100.1.1 | openSUSE-SU-2026:22305-1 |
| openSUSE | Tumbleweed | hawk2 | 2.7.2+git.1792148770.648dcddb-1.1 | openSUSE-SU-2026:12153-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Important.
This Important flaw in Active Storage allows unauthenticated remote attackers to read arbitrary files and potentially achieve remote code execution. This occurs in applications configured with `libvips` as the Active Storage variant processor (a default since Rails 7.0) that accept untrusted image uploads.
Red Hat Satellite: The Active Storage engine is explicitly commented out and disabled at runtime across all Satellite/Foreman builds. Furthermore, libvips dependencies are not shipped marking Red Hat Satellite as Not Affected.
Red Hat 3scale: Neither the libvips binary nor its shared libraries are present in any 3scale container image, hence 3scale product is not affected.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat 3scale API Management Platform 2 | 3scale-amp20/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp21/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp22/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp24/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp24/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp25/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp25/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp26/system | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp26/zync | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel7 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel8 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/system-rhel9 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel7 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel8 | Not affected | |
| Red Hat 3scale API Management Platform 2 | 3scale-amp2/zync-rhel9 | Not affected | |
| Red Hat Satellite 6 | rubygem-activestorage | Not affected | |
| Red Hat Satellite 6 | satellite:el8/rubygem-activestorage | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-66066.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.