Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. activestorage
  4. ›
  5. CVE-2026-66066

CVE-2026-66066: Active Storage has possible arbitrary file read and remote code execution in Active Storage variant processing

July 30, 2026

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.

References

  • github.com/advisories/GHSA-xr9x-r78c-5hrm
  • github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e
  • github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5
  • github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a
  • github.com/rails/rails/releases/tag/v7.2.3.2
  • github.com/rails/rails/releases/tag/v8.0.5.1
  • github.com/rails/rails/releases/tag/v8.1.3.1
  • github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-66066.yml
  • nvd.nist.gov/vuln/detail/CVE-2026-66066
  • thehackernews.com/2026/07/critical-rails-flaw-could-let.html
  • www.cve.org/CVERecord/SearchResults?query=CVE-2026-66066

Code Behaviors & Features

Detect and mitigate CVE-2026-66066 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 7.2.3.2, all versions starting from 8.0.0-beta.1 before 8.0.5.1, all versions starting from 8.1.0-beta.1 before 8.1.3.1

Fixed versions

  • 7.2.3.2
  • 8.0.5.1
  • 8.1.3.1

Solution

Upgrade to versions 7.2.3.2, 8.0.5.1, 8.1.3.1 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1188: Initialization of a Resource with an Insecure Default

Source file

gem/activestorage/CVE-2026-66066.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.