cve.bz

CVE-2026-66066 (KindaRails2Shell) rails rails

9.5 criticalExploitEPSS 33%Fix available

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

On this page
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.

Severity

CVSS 4.0

9.5 critical
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
EPSS
33% (unchanged from 33% a week ago; 28% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2026-08-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1188 Initialization of a Resource with an Insecure Default
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rails< 7.2.3.2
rails>= 8.0.0.beta1, < 8.0.5.1
rails>= 8.1.0.beta1, < 8.1.3.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xr9x-r78c-5hrmRubyGemsactivestorage<7.2.3.27.2.3.2
GHSA-xr9x-r78c-5hrmRubyGemsactivestorage>=8.0.0.beta1 <8.0.5.18.0.5.1
GHSA-xr9x-r78c-5hrmRubyGemsactivestorage>=8.1.0.beta1 <8.1.3.18.1.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12rails2:6.1.7.10+dfsg-1~deb12u3DEBIAN-CVE-2026-66066 DLA-4829-1
Debian13rails2:7.2.2.2+dfsg-2~deb13u2DEBIAN-CVE-2026-66066 DSA-6546-1
Debian14rails2:7.2.3.2+dfsg-1DEBIAN-CVE-2026-66066
Ubuntu24.04:LTS, 26.04:LTS, 26.10 and 4 morerailsno fix listedUBUNTU-CVE-2026-66066
SUSELinux Enterprise High Availability Extension 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1SUSE-SU-2026:24195-1
SUSELinux Enterprise High Availability Extension 16.1hawk-apiserver0.2.4+git.1792406875.6ed758a-160100.1.1SUSE-SU-2026:24712-1
SUSELinux Enterprise High Availability Extension 16.1hawk22.7.2+git.1789128469.a738abc1-160100.1.1SUSE-SU-2026:24712-1
SUSELinux Enterprise Server 16.1, Linux Enterprise Server for SAP applications 16.1python-Pillow11.3.0-160100.3.1SUSE-SU-2026:24712-1
SUSELinux Enterprise Server for SAP applications 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1SUSE-SU-2026:24250-1
SUSELinux Enterprise Server for SAP applications 16.1hawk-apiserver0.2.4+git.1792406875.6ed758a-160100.1.1SUSE-SU-2026:24722-1
SUSELinux Enterprise Server for SAP applications 16.1hawk22.7.2+git.1789128469.a738abc1-160100.1.1SUSE-SU-2026:24722-1
openSUSELeap 16.0hawk22.7.2+git.1788518533.7d4dadd6-160000.1.1openSUSE-SU-2026:22068-1
openSUSELeap 16.1hawk-apiserver0.2.4+git.1792406875.6ed758a-160100.1.1openSUSE-SU-2026:22305-1
openSUSELeap 16.1hawk22.7.2+git.1789128469.a738abc1-160100.1.1openSUSE-SU-2026:22305-1
openSUSETumbleweedhawk22.7.2+git.1792148770.648dcddb-1.1openSUSE-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

Red Hat rates this Important.

Red Hat's statement

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.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp20/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp21/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp21/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp22/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp22/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp24/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp24/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp25/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp25/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp26/systemNot affected
Red Hat 3scale API Management Platform 23scale-amp26/zyncNot affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel7Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Not affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Not affected
Red Hat Satellite 6rubygem-activestorageNot affected
Red Hat Satellite 6satellite:el8/rubygem-activestorageNot 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.

Public exploits

GitHub PoC

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.

  • Zer0SumGam3/CVE-2026-66066-POC Harbor Check: matches CVE 24 stars, Python, created
    PoC for CVE-2026-66066 in Ruby on Rails
  • 0xsha/KindaRails2Shell Harbor Check: matches CVE 5 stars, created
    CVE-2026-66066 + File Read, RCE, Scanner, Lab
  • HackSpeak/CVE-2026-66066 Harbor Check: matches CVE 4 stars, Python, created
    CVE-2026-66066 (KindaRails2Shell) PoC - Rails Active Storage/libvips arbitrary file read to RCE; for authorized security testing
  • shinthink/CVE-2026-66066 Harbor Check: matches CVE 1 star, Python, created
    CVE-2026-66066 — KindaRails2Shell: Rails Active Storage/libvips Arbitrary File Read → RCE. MATLAB/HDF5 dual-identity file → SECRET_KEY_BASE…
  • rails/rails-forensics-CVE-2026-66066 30 stars, Ruby, created
3 more

Detection rules

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.

  • Emerging Threats Open ET WEB_SPECIFIC_APPS Rails Active Storage BMP Direct Upload (CVE-2026-66066) sid 2072273

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON