CVE-2026-122006

activestorage: activestorage: arbitrary file read and write via ImageMagick attachment analysis

Published Nov 4, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
The activestorage gem before 8.1.4.1 for Ruby on Rails, when ImageMagick attachment processing occurs, can allow server read and write operations (e.g., reading secret_key_base) because the ImageMagick analyzer runs when a file is attached, and there is not an ImageMagick security policy to block unintended functionality.

Analysis

AI-generated

Technical impact

The Active Storage gem, when using ImageMagick during file attachment processing, allows an attacker to perform read and write operations on the server. Prior to version 8.1.4.1, the ImageMagick analyzer executes without a security policy that restricts access, enabling an attacker to read sensitive files such as the application’s secret_key_base and modify them. This vulnerability is classified as CWE-1188 and can lead to serious confidentiality and integrity breaches.

Affected Systems

Ruby on Rails Active Storage, versions prior to 8.1.4.1 (including releases < 8.1.4.1). The vulnerability is present in all deployments that rely on ImageMagick for attachment processing in these versions.

Risk and Exploitability

The vulnerability has a CVSS score of 9.8, indicating high severity. No EPSS score is available, and the issue is not listed in the CISA KEV catalog. While the exploit requires upload of a crafted file that triggers the ImageMagick analyzer, it is likely that any public or internal endpoint that accepts file uploads can be abused. The exploit can be performed remotely via the application’s attachment handling pathway, making the attack vector likely web-based and client-initiated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Active Storage to version 8.1.4.1 or newer (or apply the 8.0.5.2 release if appropriate).
  • Configure ImageMagick with a restrictive security policy that disallows file read/write operations during attachment processing.
  • Validate and sanitize all file uploads, restricting accepted MIME types and file extensions to minimize exposure.

Generated by OpenCVE AI on November 4, 2026 at 15:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-f3w6-w445-fwh9 Active Storage: Possible arbitrary file write and read in image analysis
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title ImageMagick Attachment Processing Allows Server Read/Write Operations in Active Storage activestorage: activestorage: arbitrary file read and write via ImageMagick attachment analysis
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title ImageMagick Attachment Processing Allows Server Read/Write Operations in Active Storage
Type Values Removed Values Added
Description The activestorage gem before 8.1.4.1 for Ruby on Rails, when ImageMagick attachment processing occurs, can allow server read and write operations (e.g., reading secret_key_base) because the ImageMagick analyzer runs when a file is attached, and there is not an ImageMagick security policy to block unintended functionality.
First Time appeared Rubyonrails
Rubyonrails active Storage
Weaknesses CWE-1188
CPEs cpe:2.3:a:rubyonrails:active_storage:*:*:*:*:*:*:*:*
Vendors & Products Rubyonrails
Rubyonrails active Storage
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 9, 2026, 9:12 PM
Reserved
Nov 4, 2026, 2:12 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 3:17 PM
Modified
Nov 12, 2026, 10:09 PM
Severity
Important
Public date
Nov 4, 2026, 2:12 PM