CVE-2026-66066
Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing
Check your servers for CVE-2026-66066
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-66066 affects rails, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
Exploitation
EPSS 32.9%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 4 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-1188 Initialization of a Resource with an Insecure Default
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| rails |
affected < 7.2.3.2 affected >= 8.0.0.beta1, < 8.0.5.1 affected >= 8.1.0.beta1, < 8.1.3.1
|
Is my server affected?
Find the installed version of rails and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i rails
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-66066 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-66066RHEL, Rocky, Alma, Fedora
rpm -q rails
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-66066Alpine
apk list --installed | grep -i railsWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-66066
trivy image --scanners vuln IMAGE | grep CVE-2026-66066
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Exploits and proof of concept
- https://github.com/rails/rails-forensics-CVE-2026-66066 github.com · exploit
Other references
- https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e github.com
- https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5 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/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml github.com
- https://thehackernews.com/2026/07/critical-rails-flaw-could-let.html thehackernews.com
- http://www.openwall.com/lists/oss-security/2026/07/29/9 openwall.com
- https://ethiack.com/info-hub/research/kindarails2shell-rails-rce-cve-2026-66066 ethiack.com
- http://www.openwall.com/lists/oss-security/2026/08/01/6 openwall.com
Source: the record CVE-2026-66066 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse