CVE-2026-122006: Active Storage: Possible arbitrary file write and read in image analysis
Published 2026-11-12 · Updated 2026-11-17 · Also known as GHSA-f3w6-w445-fwh9
Summary
Active Storage contains an arbitrary file write and read vulnerability during ImageMagick image analysis caused by unconstrained coders. Engineering teams using RubyGems activestorage with MiniMagick should upgrade immediately.
Who is affected
An unauthenticated attacker who can upload a crafted file can write arbitrary files on the server and potentially read arbitrary files readable by the application process when stored with the Disk service. Deployments are affected if they use ImageMagick via MiniMagick for Active Storage processing, run under a security policy that does not deny the affected coders, and allow file uploads from untrusted users.
Exploitability
The vulnerability has a CVSS base score of 9.8 (CRITICAL) with a vector of CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating network attack vectors with low complexity and no privileges or user interaction required. The current EPSS score is 0.007 (55.4th percentile), and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade RubyGems activestorage to version 8.1.4.1, 8.0.5.2, or later.
- Ensure mini_magick is upgraded to version 5.1 or greater if the variant processor is set to :mini_magick.
- Change secret_key_base and all other exposed secrets if attachments are stored with the Disk service.
- Alternatively, copy the policy rules from activestorage/lib/active_storage/image_magick/policy.xml into ImageMagick's system policy as a workaround.
How to check your project
- Check project Gemfile or lockfile for RubyGems activestorage versions falling into the ranges < 8.0.5.2 or >= 8.1, < 8.1.4.1.
- Inspect configuration to verify if config.active_storage.variant_processor is set to :mini_magick.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| RubyGems | activestorage |
>= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 | bundle update activestorage |
| RubyGems | activestorage |
>= 0, < 8.0.5.2 | 8.0.5.2 | bundle update activestorage |
CVSS 3.0 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes the vulnerability in Active Storage?
Active Storage does not constrain ImageMagick's coders during image analysis, allowing crafted uploads to invoke coders that operate on files named inside the image rather than the image itself.
Which versions of activestorage fix the issue?
The fixed versions are 8.0.5.2 and 8.1.4.1.
What actions should be taken if attachments are stored with the Disk service?
Change secret_key_base and every secret readable by the application process, including storage and database credentials, third-party tokens, and master keys.
Original advisory description
References
- WEB https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-122006
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-126082
- WEB https://github.com/digitalocean/droplet-1-clicks/pull/488
- WEB https://github.com/rubysec/ruby-advisory-db/pull/1300
- WEB https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328
- WEB https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776
- WEB https://github.com/alan-turing-institute/cyber-threat-observatory/blob/main/reports/2026-11-04/TIER_2_CVE-2026-122006.md
- PACKAGE https://github.com/rails/rails
- WEB https://github.com/rails/rails/releases/tag/v8.0.5.2
- WEB https://github.com/rails/rails/releases/tag/v8.1.4.1
- WEB https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-f3w6-w445-fwh9.yml
Source records: GHSA-f3w6-w445-fwh9 (OSV.dev) · EPSS by FIRST, 2026-11-21.