Ruby on Rails Patches Critical Active Storage Vulnerability

· Original article ↗

Summary

CVE-2026-66066 can expose arbitrary server files in affected Rails Active Storage deployments using libvips, potentially enabling code execution. Patches are available; Rapid7 reported no evidence of exploitation in the wild as of July 30.

Key points

  • CVE-2026-66066 is rated critical with a CVSS score of 9.5.
  • The issue affects applications using libvips for Active Storage image processing that accept untrusted image uploads.
  • A crafted upload may trigger unsafe file operations and expose files accessible to the application, including its process environment.
  • Exposed secrets, including secret_key_base and external-system credentials, could potentially enable further attacks, including remote code execution.
  • Fixes are available in Active Storage versions 7.2.3.2, 8.0.5.1, and 8.1.3.1; libvips should also be updated to at least version 8.13.
  • Rails maintainers advise treating readable secrets as potentially exposed and changing them if an affected application may have been compromised.
  • Rapid7 reported no evidence of exploitation in the wild as of July 30.

Article Details

Vulnerability Types
  • Arbitrary file read
  • Remote code execution
Severity
Critical (CVSS 9.5)
Exploitation Status
not_reported
Exploit Availability
unknown
Patch Status
available

MITRE ATT&CK

CVE

Products