Urgent
Ruby on Rails Active Storage ImageMagick attachment processing lets attackers read and write server files
CVE-2026-122006
Sites that process uploaded files may have server secrets stolen!
- CVE
- CVE-2026-122006 (opens in a new tab)
- Score
- CVSS 9.8
- First seen
9.8
Products
Mitigation
Update the Active Storage gem to 8.1.4.1 or later.
Summary
When Active Storage processes attachments with ImageMagick, attackers can read and write server data, such as secret_key_base. Versions before 8.1.4.1 are affected.
Affected when
Active Storage attachment processing with ImageMagick
Incidents by product: Ruby on Rails Active Storage
Distribution packages (7) (every link below opens in a new tab)
- Debian 13 (trixie)rails · fixed in 2:7.2.2.2+dfsg-2~deb13u3
- Debian 12 (bookworm)rails · fixed in 2:6.1.7.10+dfsg-1~deb12u4
- SLES 16.1rmt-server · not affected
- SLES 16.0rmt-server · not affected
- SLES 15 SP7rmt-server · not affected
- openSUSE Leap 16.0hawk2 · not fixed yet
- openSUSE Leap 16.0rmt-server · not affected
Sources: Debian Security Tracker · SUSE CSAF VEX (CC BY 4.0)
Read the CVE record · cve.org (opens in a new tab)
- CVE record: cve.org (opens in a new tab)