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.
Published: 2026-11-04
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: Server Read/Write Operations
Action: Immediate Patch
AI Analysis

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.

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

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

No advisories yet.

History

Wed, 04 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
References

Wed, 04 Nov 2026 16:00:00 +0000

Type Values Removed Values Added
Title ImageMagick Attachment Processing Allows Server Read/Write Operations in Active Storage

Wed, 04 Nov 2026 14:30:00 +0000

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'}


Subscriptions

Rubyonrails Active Storage
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-11-04T19:08:51.499Z

Reserved: 2026-11-04T14:12:17.191Z

Link: CVE-2026-122006

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T15:17:42.940

Modified: 2026-11-04T19:17:38.997

Link: CVE-2026-122006

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T17:00:15Z

Weaknesses
  • CWE-1188

    Initialization of a Resource with an Insecure Default