Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Critical · 9.8 Microsoft CVE-2026-122006

Critical Active Storage Vulnerability Allows Server Read/Write via ImageMagick Attachment Processing (CVE-2026-122006)

A critical flaw in the Active Storage gem for Ruby on Rails allows server-side read and write operations, including exposure of secret_key_base, when ImageMagick processes an attached file without a restrictive security policy in place.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 3 sources · updated 1 week ago

AI summary

A critical vulnerability has been disclosed in the Active Storage gem used by Ruby on Rails applications. The issue, tracked as CVE-2026-122006, stems from how file attachments are processed through ImageMagick, and can expose sensitive server-side data or allow unauthorized file operations. The vulnerability affects versions before 8.1.4.1 and has been assigned a CVSS base score of 9.8, reflecting its potential for severe impact.

What happened

A vulnerability was disclosed in the Active Storage gem for Ruby on Rails. When a file is attached, Active Storage's ImageMagick analyzer runs automatically. Because there is no ImageMagick security policy in place to restrict unintended functionality, this processing step can allow server read and write operations beyond what is expected, including reading sensitive values such as secret_key_base.

Technical cause

The root cause is the absence of a restrictive ImageMagick security policy during attachment processing. ImageMagick supports a range of file format coders and operations, some of which can be abused to read or write arbitrary files on the server if not explicitly disabled. Because Active Storage invokes the ImageMagick analyzer automatically whenever a file is attached, and does not enforce a hardened policy, an attacker who can cause a file to be attached may be able to trigger these unintended read/write operations. This is categorized under CWE-1188 (Insecure Default Initialization of Resource).

Why it matters

The vulnerability is rated with a CVSS base score of 9.8, indicating a critical severity. The attack vector is network-based, requires no privileges, and no user interaction, meaning it could potentially be triggered remotely without authentication. The impact spans confidentiality, integrity, and availability at the highest level, since server read/write access could expose secret_key_base — a value used by Rails applications for cryptographic signing — or allow further manipulation of server files.

Who is affected

Applications using the Active Storage gem for Ruby on Rails with ImageMagick-based attachment processing are affected if no restrictive ImageMagick security policy has been applied. One specific affected package has been identified: the rubygem-activestorage package distributed for Azure Linux 4.0. Other distributions or deployments of Active Storage using ImageMagick processing without a hardened security policy may also be at risk, though the fact package only confirms this specific packaging.

Affected versions

The vulnerability affects versions of the activestorage gem before version 8.1.4.1. No information is provided in the fact package about the specific version ranges affected for the Azure Linux 4.0 package beyond its product identifier.

Fixes and mitigation

A fixed version, 8.1.4.1, is referenced as resolving the underlying issue in the activestorage gem itself. However, the fact package does not confirm that a fixed version is currently available for the specific Azure Linux 4.0 package identified. Organizations should verify with their distribution or package maintainer whether an update to a non-vulnerable version has been published for their specific deployment.

Recommended action

Site owners and developers running Ruby on Rails applications with Active Storage should update to activestorage version 8.1.4.1 or later where available. In addition, administrators should ensure a restrictive ImageMagick security policy is enforced on any system processing untrusted file uploads, to prevent unintended read/write operations regardless of the application-layer fix. For the Azure Linux 4.0 package specifically, confirm with the distribution maintainer whether a patched package version has been released, since this was not confirmed in available information.

PatchBriefing score

9.8 / 10 · Critical

Official CVSS: 9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS 0.0072 (50 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

Reported fixes

A fixed version, 8.1.4.1, is referenced as resolving the underlying issue in the activestorage gem itself. However, the fact package does not confirm that a fixed version is currently available for the specific Azure Linux 4.0 package identified. Organizations should verify with their distribution or package maintainer whether an update to a non-vulnerable version has been published for their specific deployment.

How this was built

3 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • CVE.org database
  • Microsoft Security Update Guide vendor
Unified report
Critical Active Storage Vulnerability Allows Server Read/Write via ImageMagick Attachment Processing (CVE-2026-122006)
1 article · 3 sources cited
Revision history
  1. Generated
  2. Published
  3. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email