CVE-2026-122006
activestorage: activestorage: arbitrary file read and write via ImageMagick attachment analysis
Overview
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.
Source: OX vulnerability database
Severity
9.8 · CRITICAL
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-1188
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | activestorage | >=8.1.0.beta1, <8.1.4.1<8.0.5.2 | 8.1.4.18.0.5.2~> 8.0.5, >= 8.0.5.2 |
Open a package to see all its vulnerabilities.
Operating systems · 6 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | rubygem-activestorage | affected |
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rails | affected |
| 12 | rails | affected |
| 13 | rails | affected |
| 14 | rails | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| rails | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-122006
- github.com https://github.com/advisories/GHSA-f3w6-w445-fwh9
- github.com https://github.com/advisories/GHSA-wgv4-95jc-33jm
- github.com https://github.com/alan-turing-institute/cyber-threat-observatory/blob/main/reports/2026-11-04/TIER_2_CVE-2026-122006.md
- github.com https://github.com/digitalocean/droplet-1-clicks/pull/488
- github.com https://github.com/rails/rails
- github.com https://github.com/rails/rails/commit/468aa9a93fc98f5476b6821770f4ccfcb7f7d328
- github.com https://github.com/rails/rails/commit/ea8c40121ce53a3d0255cd4eb6d13bfe3bc01776
- github.com https://github.com/rails/rails/releases/tag/v8.0.5.2
- github.com https://github.com/rails/rails/releases/tag/v8.1.4.1
Show all 18 references
- github.com https://github.com/rails/rails/security/advisories/GHSA-f3w6-w445-fwh9
- github.com https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/GHSA-f3w6-w445-fwh9.yml
- github.com https://github.com/rubysec/ruby-advisory-db/pull/1300
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-122006
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-126082
- rubygems.org https://rubygems.org/gems/activestorage/versions/8.0.5.2
- rubygems.org https://rubygems.org/gems/activestorage/versions/8.1.4.1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-122006
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.