• News/
  • bleepingcomputer-20260801142030

Rails patches critical Active Storage flaw with RCE potential

BleepingComputer
·
Bill Toulas
·
Published Aug 1, 2026
·
Updated

A critical vulnerability in the Active Storage framework can allow an unauthenticated attacker to read arbitrary files from a Rails application, and potentially escalate to remote code execution (RCE). Rails is a popular open-source web application framework written in Ruby for building websites and web apps. It uses the built-in Rails component Active Storage for handling file uploads and attachments. Rails maintainers published an advisory about the CVE-2026-66066 flaw, which received a critical severity rating. Active Storage may also generate image thumbnails from uploaded media using image processing libraries such as libvips or ImageMagick. According to the security bulletin, CVE-2026-66066 is exploitable when libvips is used, allowing an attacker to upload a specially crafted image to a vulnerable application and read arbitrary files on the server. Another prerequisite for the attack is that the server needs to allow image uploads from untrusted users. If these requirements are met, an attacker may access app files, including the process environment, which typically contains ‘secret_key_base’ and credentials for databases, cloud storage, and other services. CVE-2026-66066 impacts Active Storage before 7.2.3.2, 8.0.x before 8.0.5.1, and 8.1.x before 8.1.3.1. Rails 6.x is only affected if Active Storage has been configured outside its defaults. The Rails team recommends upgrading to libvips 8.13 or later and rotating the ‘secret_key_base’ (the Rails master key), databas...

Read full article

Affected Software

4 affected components
Ruby on Rails Active Storage (Active Storage framework)<7.2.3.2
Ruby on Rails Active Storage (Active Storage framework)<8.0.5.1
Ruby on Rails Active Storage (Active Storage framework)<8.1.3.1
Ruby on Rails Active Storage (Active Storage framework)>6.0<6.x (not specified)
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the main topic of this article?

The article discusses a critical vulnerability in the Active Storage framework of Ruby on Rails that poses risks of unauthorized file access and potential remote code execution.

2

What security implications are discussed?

The vulnerability allows unauthenticated attackers to read arbitrary files from Rails applications, potentially leading to remote code execution.

3

What products or software are affected?

The affected software is the Active Storage framework within Ruby on Rails.

4

Is the vulnerability currently being exploited?

Yes, the vulnerability has been flagged as exploited.

5

When was the vulnerability published and when will it be included in the KEV?

The vulnerability was published on August 1, 2026, and is KEV-listed for August 5, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203