All vulnerabilities

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.

From rails/rails's security advisory. Shortened; the full text is there.

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.

Workarounds as given by rails/rails's security advisory.

Affected software

SoftwareAffected versions
Ruby on RailsServers and applications · github:rails/rails
  • Every version before 7.2.3.2
  • From 8.0 before 8.0.5.1
  • From 8.1 before 8.1.3.1

About Ruby on Rails

open-source web application framework

From Wikidata, CC0 1.0.
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

ReleaseLatestSecurity fixes
8.18.1.4.1Until 10 Oct 2027
8.08.0.5.2Ended 7 Nov 2026
7.27.2.4Ended 9 Aug 2026
7.17.1.6Ended 1 Oct 2025
7.07.0.10Ended 1 Apr 2025
6.16.1.7.10Ended 1 Oct 2024

From endoflife.date.

References