CVE-2026-33202: Activestorage Rails Active Storage Has Possible Vulnerability
MODERATECVE-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
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.
Upgrade activestorage to 8.1.2.1
Upgrade activestorage to 8.0.4.1
Upgrade activestorage to 7.2.3.1
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
CVE-2026-33202 Affected Activestorage Versions
3 component(s)| 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?
Which Activestorage versions are affected?
What version fixes CVE-2026-33202?
Is activestorage affected?
What CWE is associated with CVE-2026-33202?
How can I check RubyGems dependencies for CVE-2026-33202?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}