home / blog
2026-11-05 · critical
CVE-2026-122006: Server file read in Rails activestorage
Critical vulnerability in Rails activestorage: ImageMagick analyzer allows server file read. CVSS 9.8.

CVE-2026-122006 is a critical vulnerability in the activestorage gem of Ruby on Rails (versions before 8.1.4.1) that exposes the server to unauthorized read and write operations on files when an attachment is processed. The issue stems from the ImageMagick analyzer running without a security policy that blocks unintended functionality, allowing attackers to access sensitive data such as session keys (secret_key_base) directly from the server's file system.
The severity is critical with CVSS 9.8. According to information published on NVD on November 4, 2026, the vulnerability allows both read and write operations on server files during attachment processing. Repository activity signals were detected on November 5, 2026, less than 24 hours after publication, indicating the community has already identified the vulnerability.
IT teams and sysadmins must immediately update activestorage to version 8.1.4.1 or later. In parallel, review file processing logs to detect any anomalous access that occurred before the update. Implementing an explicit security policy for ImageMagick is an essential additional defense measure.
The vulnerability represents an immediately exploitable risk on any Rails instance with activestorage exposed to file uploads from untrusted users. Since the attack mechanism is passive (simply attaching a file triggers the vulnerability), administrators must treat this update as high priority in their November 2026 patch management.
At a glance
- What
- CVE-2026-122006 affects the activestorage gem in Ruby on Rails versions before 8.1.4.1. When a file is attached and processed by ImageMagick, the analyzer runs without a security policy, allowing read and write operations on server files, including sensitive data like secret_key_base.
- Severity
- CVSS 9.8 (critical). The vulnerability allows unauthorized access to sensitive files and potential modification of critical files via ImageMagick.
- Affected versions
- activestorage gem: versions before 8.1.4.1 for Ruby on Rails.
- Fix
- Update activestorage to version 8.1.4.1 or later. Verify that ImageMagick dependencies are correctly updated.
- Status
- Patch available. CVE published on NVD on November 4, 2026. Repository activity signal detected on November 5, 2026.
- Action
- Inventory Rails applications with activestorage. Update immediately to version 8.1.4.1+. Check file processing logs for suspicious activity. Implement ImageMagick security policy if not already in place.
Sources: NVD, CVE-2026-122006