CVE Tools

Critical Rails Flaw Could Let Unauthenticated Attackers Read Server Files via Image Uploads

The Hacker NewsBy The Hacker News

PatchRuby on Rails Active Storage

Our summary

Ruby on Rails has issued patches for a high-severity vulnerability in Active Storage that allows unauthenticated attackers to read arbitrary server files through specially crafted image uploads. Tracked as CVE-2026-66066 (CVSS score: 9.5), the flaw could expose sensitive data like encryption keys, database credentials, and API tokens, potentially leading to remote code execution or lateral movement. The issue affects applications using libvips for image processing and accepting untrusted uploads. Affected versions include Rails 7.0.0 through 7.2.3.1, 8.0.0 through 8.0.5, and 8.1.0 through 8.1.3. Operators are advised to upgrade to 7.2.3.2, 8.0.5.1, or 8.1.3.1 and rotate all exposed secrets. As of now, no proof-of-concept or real-world exploitation has been observed.

Read at The Hacker News

The Hacker News publishes this story on its own site; we link to it rather than reprint it.

Worried this affects your company?

Discuss a security assessment of your internet-facing systems. Scope agreed before testing.

Check my exposure

We use analytics cookies to see which pages and articles actually help people. Decline and none of them run — the site works the same. What we store