Servers and applications
CVE-2026-66066
Possible arbitrary file read and remote code execution in Active Storage variant processing
- Severity
- Critical 9.5
- Published
- 29 Jul 2026
- Last changed
- 29 Jul 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 7.2.3.2, 8.0.5.1, 8.1.3.1
- Exploit chance
- 33% in the next 30 daysHigher than 98% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Insecure default (CWE-1188)
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
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- Also known as
- GHSA-xr9x-r78c-5hrm
- Sources
- Project advisories (GitHub)
Description
In its default configuration, a Rails application that displays image variants may allow an unauthenticated attacker to read arbitrary files from the server, including the process environment. That environment typically holds secret_key_base and often credentials for external systems, which may in turn allow escalation to remote code execution or lateral movement to those systems.
libvips reads and writes file formats through "loaders" and "savers" (or more generally "operations"), many of which are backed by third-party libraries. It marks some of these operations as "unfuzzed", meaning they are unsafe for untrusted content, and several handle formats unrelated to web images. Active Storage did not disable the unfuzzed operations, so an attacker who can upload a crafted file and cause a variant to be generated from it may be able to invoke one.
Workarounds
- Upgrade to a fixed version of activestorage.
- The minimum version of libvips must be upgraded to >= 8.13.
- Change secret_key_base and change any secrets accessible in the application environment (see "Expire and change secrets" below)
Earlier versions of libvips (< 8.13) cannot disable unfuzzed operations at all, and Active Storage will raise an exception during boot in such an unsecurable environment.
If libvips < 8.13 is being used, there are no workarounds available other than removing the dependency on libvips from the application.
Affected software
| Software | Affected versions |
|---|---|
Ruby on RailsServers and applications · github:rails/rails |
|
About Ruby on Rails
open-source web application framework
- Developers who used it in the past year
- 5.9%Stack Overflow Developer Survey 2025, 2025
- Total downloads (RubyGems)
- 816,775,587RubyGems, 15 Nov 2026
- GitHub stars
- 59,110GitHub, 15 Nov 2026
- Forks
- 23,131GitHub, 15 Nov 2026
- Latest release
- v8.1.4.1GitHub, 15 Nov 2026
- Released
- 4 Nov 2026GitHub
- Developer
- David Heinemeier HanssonWikidata
- License
- MIT LicenseWikidata
- Written in
- RubyWikidata
- First released
- 13 Dec 2005Wikidata
- First published on GitHub
- 11 Apr 2008GitHub
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 8.1 | 8.1.4.1 | Until 10 Oct 2027 |
| 8.0 | 8.0.5.2 | Ended 7 Nov 2026 |
| 7.2 | 7.2.4 | Ended 9 Aug 2026 |
| 7.1 | 7.1.6 | Ended 1 Oct 2025 |
| 7.0 | 7.0.10 | Ended 1 Apr 2025 |
| 6.1 | 6.1.7.10 | Ended 1 Oct 2024 |
From endoflife.date.
Vulnerabilities in Ruby on Rails
- In our list
- 66
- Published in the last 12 months
- 53
- Critical, last 12 months
- 3
- High, last 12 months
- 8
- Known exploited
- 0
- GHSA-f3w6-w445-fwh9Possible arbitrary file write and read in Active Storage image analysisCritical 9.8 4 Nov 2026
- CVE-2026-126082Possible arbitrary file write and read in Active Storage image analysisCritical 9.8 4 Nov 2026
- GHSA-x6mj-8jx9-qhqvPossible sensitive session information leak in Active Storage proxy modeMedium 6.8 4 Nov 2026
- CVE-2026-126077Possible sensitive session information leak in Active Storage proxy modeMedium 6.8 4 Nov 2026
- GHSA-wm3x-v3qw-4jh3Possible Strong Parameters bypass in Parameters#each_key in Action PackHigh 7.5 4 Nov 2026
- CVE-2026-126081Possible Strong Parameters bypass in Parameters#each_key in Action PackHigh 7.5 4 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-66066
- GitHub Advisory Database https://github.com/advisories/GHSA-xr9x-r78c-5hrm
- github.com https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm