Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-66066 – Arbitrary File Read / Remote Code Execution – Ruby on Rails Active Storage (< 7.2.3

Be the first to know when new zero-days emerge:

Summary

CVE-2026-66066 is a critical vulnerability in Ruby on Rails Active Storage. When Active Storage generates image variants with libvips, it does not disable libvips operations that are marked unsafe for untrusted content, allowing a crafted upload to invoke such an operation. This enables unauthenticated arbitrary file read and, through leaked secrets, potential remote code execution. It carries a CVSS 4.0 base score of 9.5 (Critical).

Technical details

  • Root cause: libvips ships operations that are unsafe (unfuzzed) for untrusted content; Active Storage failed to block these operations when processing variants of user-supplied files (CWE-1188, Insecure Default Initialization of Resource).
  • Trigger conditions: A Rails application that uses Active Storage with the libvips variant processor and accepts untrusted file uploads, then generates variants of those uploads.
  • Attack vector: Network. An unauthenticated attacker uploads a specially crafted file that causes an unsafe libvips operation to run during variant processing.
  • Impact: Arbitrary reading of files accessible to the Rails process, including the process environment, which commonly exposes credentials such as secret_key_base. Exposure of such secrets can enable remote code execution or lateral movement.

Affected software

  • Active Storage / Rails < 7.2.3.2
  • Active Storage / Rails >= 8.0.0, < 8.0.5.1
  • Active Storage / Rails >= 8.1.0, < 8.1.3.1

Severity

  • CVSS 4.0 base score: 9.5 (Critical)
  • 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

Mitigation and recommended actions

  • Immediate: Upgrade to a fixed release — Rails 7.2.3.2, 8.0.5.1, or 8.1.3.1.
  • If no patch can be applied, workarounds:
    • With libvips >= 8.13, set the VIPS_BLOCK_UNTRUSTED environment variable.
    • With ruby-vips >= 2.2.1, call Vips.block_untrusted(true).
    • Remove the ruby-vips dependency if it is not required for other purposes.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge