# Rails patches file read and write in ImageMagick analysis

Cite as: Gloqo AI, "Rails patches file read and write in ImageMagick analysis", reviewed 4 Nov 2026, https://www.gloqo.ai/security-updates/advisories/rails-active-storage-2026-11-04/.

Gloqo reviewed the vendor and CNA records on 4 Nov 2026. Those sources are the authority for the vulnerability.

Product: Ruby on Rails Active Storage
Published: 2026-11-04
Reviewed: 2026-11-04T21:58:29Z

## Summary

A crafted upload can cause arbitrary server file writes during Active Storage image analysis. If the Disk service stores attachments, application-readable files can also be read, potentially exposing secrets and enabling further compromise.

## Affected

The Rails advisory lists activestorage before 8.0.5.2 and 8.1 before 8.1.4.1. An application must use ImageMagick with Active Storage, permit untrusted uploads, and have a policy that does not already deny the involved coders. Attaching the file triggers the analyzer.

## Fix

Upgrade activestorage to 8.0.5.2 or 8.1.4.1 as applicable. Applications using mini_magick need version 5.1 or later. With Disk storage, Rails recommends rotating all application-readable secrets, including secret_key_base and credentials. Review the advisory for policy exceptions and workarounds.

## Evidence

Rails describes a reported attack chain, but the advisory does not establish exploitation in the wild.

## Severity

Rails rates the issue Critical, CVSS v3.0 9.8.

## CVEs

- [CVE-2026-122006](https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/122xxx/CVE-2026-122006.json)

## Sources

1. [Rails: Active Storage image analysis advisory](https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9)
2. [CVE Program: CVE-2026-122006](https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/122xxx/CVE-2026-122006.json)
