Patchfirst
CVE-2026-122006 Critical · 9.8 EPSS 0.7%

The activestorage gem before 8.1.4.1 for Ruby on Rails, when ImageMagick attachment processing occurs, can allow…

Fix:upgrade activestorage to 8.1.4.1 or later also fixes CVE-2026-66066 Details ↓

rubyonrails · Active Storage

Summary

The activestorage gem for Ruby on Rails, before version 8.1.4.1, contains a flaw in Active Storage's ImageMagick attachment processing, where the analyzer runs when a file is attached and no ImageMagick security policy restricts its functionality. An attacker can use this to perform server read and write operations, such as reading secret_key_base, by attaching a crafted file, with no authentication or user interaction required and network access sufficient.

Official description · NVD

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.

Breakdown
20.1 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 4 Nov 2026. No public exploit code or confirmed exploitation is recorded.

See the family tree

3 related vulnerabilities in the same code over 4 years.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2022-21831A code injection vulnerability exists in the Active Storage >=…26 May 2022
  2. relatedMedium

    Why these are linked:

    CVE-2025-24293# Active Storage allowed transformation methods potentially…30 Jan 2026
  3. same family
    This CVECVE-2026-122006The activestorage gem before 8.1.4.1 for Ruby on Rails, when…4 Nov 2026

Affected versions and fixes

as published in the CVE record

rubyonrails Active Storage

Affected: < 8.0.5.2 · >= 8.1, < 8.1.4.1

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: activestorage.

RubyGemsactivestorageGHSA-f3w6-w445-fwh9

Upgrade to 8.1.4.1 or later

Fixes this CVE and 1 other known vulnerability in this package (CVE-2026-66066).

Gemfilegem "activestorage", ">= 8.1.4.1"

The first fix for CVE-2026-122006.

Affected versions, by release line

If you runUpgrade to
8.1.0.beta1 up to 8.1.4.18.1.4.1
All versions before 8.0.5.28.0.5.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 8 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

6 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close