CVE-2026-33202: Rails Active Storage has possible glob injection in its DiskService

Published Mar 23, 2026
·
Updated

Impact Active Storage's DiskService#deleteprefixed 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.

Other sources

Active Storage allows users to attach cloud and local files in Rails applications. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1, Active Storage's DiskService#deleteprefixed 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. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

MITRE

Affected Software

6 affected componentsFixes available
rubygems/activestorage<7.2.3.1
7.2.3.1
rubygems/activestorage>=8.0.0.beta1<8.0.4.1
8.0.4.1
rubygems/activestorage>=8.1.0.beta1<8.1.2.1
8.1.2.1
rubyonrails Rails<7.2.3.1
rubyonrails Rails>=8.0.0<8.0.4.1
rubyonrails Rails>=8.1.0<8.1.2.1

Event History

Mar 23, 2026
Advisory Published
via GitHub·09:18 PM
Data Sourced
via GitHub·09:18 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·11:34 PM
Data Sourced
via MITRE·11:34 PM
DescriptionWeakness
Mar 24, 2026
Data Sourced
via NVD·12:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33202?

CVE-2026-33202 is classified as a moderate severity vulnerability due to the potential for glob injection in Active Storage's DiskService.

2

How do I fix CVE-2026-33202?

To mitigate CVE-2026-33202, update the Active Storage gem to version 7.2.3.1 or later, or 8.0.4.1 or 8.1.2.1.

3

What is affected by CVE-2026-33202?

CVE-2026-33202 affects the Rails Active Storage library specifically in versions prior to 7.2.3.1, 8.0.0 to 8.0.4.1, and 8.1.0 to 8.1.2.1.

4

What type of attack does CVE-2026-33202 enable?

CVE-2026-33202 enables glob injection attacks that could allow an attacker to manipulate file system commands.

5

Is there a known workaround for CVE-2026-33202 if I cannot upgrade?

Currently, there are no officially documented workarounds for CVE-2026-33202, so upgrading is the recommended course of action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203