CVE-2026-33202: Activestorage Rails Active Storage Has Possible Vulnerability

MODERATE
Advisory Identifier: GHSA-73f9-jhhh-hr5m
CWE-74
Published
Advisory Summary

CVE-2026-33202 is a MODERATE rails active storage has possible vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Activestorage libraries in the RubyGems ecosystem. The issue involves rails active storage has possible glob injection in its diskservice. Remediation is available by upgrading affected packages to version 8.1.2.1, 8.0.4.1, 7.2.3.1.

CVE-2026-33202 at a Glance

CVE Identifier CVE-2026-33202
GHSA Identifier GHSA-73f9-jhhh-hr5m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Activestorage
Package Ecosystem RubyGems
Published Date
Last Updated

How to Fix CVE-2026-33202

To remediate this vulnerability, upgrade all affected Activestorage dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

activestorage fixed: 8.1.2.1
Upgrade activestorage to 8.1.2.1
activestorage fixed: 8.0.4.1
Upgrade activestorage to 8.0.4.1
activestorage fixed: 7.2.3.1
Upgrade activestorage to 7.2.3.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for activestorage

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33202, inspect your project dependencies for Activestorage:

inspect dependencies for activestorage

Analyze the terminal output to locate any version of Activestorage in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.1.2.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Activestorage, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Active Storage's `DiskService#delete_prefixed` passes blob keys directly to `Dir.glob` without escaping glob metacharacters. If a blob key contains attacker-controlled input or custom-generated keys with glob metacharacters, it may be possible to delete unintended files from the storage directory. ### Releases The fixed releases are available at the normal locations.

CVE-2026-33202 Affected Activestorage Versions

3 component(s)
Fixed Versions:
8.1.2.18.0.4.17.2.3.1
Product / Package Ecosystem Affected Versions Fixed Version
activestorage
RubyGems
≥ 8.1.0.beta1
< 8.1.2.1
8.1.2.1
activestorage
RubyGems
≥ 8.0.0.beta1
< 8.0.4.1
8.0.4.1
activestorage
RubyGems
< 7.2.3.1
7.2.3.1

References

Frequently Asked Questions

What is CVE-2026-33202?
CVE-2026-33202 is a security vulnerability in Activestorage involving Rails Active Storage has possible glob injection in its DiskService under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Activestorage versions are affected?
Affected versions include releases prior to 8.1.2.1, 8.0.4.1, 7.2.3.1 across affected packages: activestorage.
What version fixes CVE-2026-33202?
Upgrading to 8.1.2.1, 8.0.4.1, 7.2.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is activestorage affected?
Yes, activestorage is affected in releases prior to 8.1.2.1, 8.0.4.1, 7.2.3.1. Upgrade your dependency to 8.1.2.1, 8.0.4.1, 7.2.3.1 or later.
What CWE is associated with CVE-2026-33202?
CVE-2026-33202 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check RubyGems dependencies for CVE-2026-33202?
Run the dependency tree command: 'inspect dependencies for activestorage'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-73f9-jhhh-hr5m",
  "modified" : "2026-05-13T16:17:06Z",
  "published" : "2026-03-23T21:18:56Z",
  "aliases" : [ "CVE-2026-33202" ],
  "summary" : "Rails Active Storage has possible glob injection in its DiskService",
  "details" : "### Impact\nActive Storage's `DiskService#delete_prefixed` passes blob keys directly to `Dir.glob` without escaping glob metacharacters. If a blob key contains attacker-controlled input or custom-generated keys with glob metacharacters, it may be possible to delete unintended files from the storage directory.\n\n### Releases\nThe fixed releases are available at the normal locations.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activestorage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.1.0.beta1"
      }, {
        "fixed" : "8.1.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activestorage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0.beta1"
      }, {
        "fixed" : "8.0.4.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "activestorage"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.2.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/security/advisories/GHSA-73f9-jhhh-hr5m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33202"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/8c9676b803820110548cdb7523800db43bc6874c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/955284d26e469a9c026a4eee5b21f0414ab0bccf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/commit/fa19073546360856e9f4dab221fc2c5d73a45e82"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rails/rails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/releases/tag/v7.2.3.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/releases/tag/v8.0.4.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rails/rails/releases/tag/v8.1.2.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33202.yml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-23T21:18:56Z",
    "nvd_published_at" : "2026-03-24T00:16:29Z"
  }
}