CVE-2026-33202: rails activestorage · Injection
Affects rails activestorageSource CVE Database V5
Not known to be exploited · CVSS 6.6 Medium · fixed in 8.1.2.1 : update rails activestorage when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.1.2.1, 8.0.4.1, 7.2.3.1
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:UExploitation evidence
Disclosed: evidence found.
CVE published 23 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade rails activestorage to 8.1.2.1, 8.0.4.1 or 7.2.3.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| railsactivestorage | Affected
| Fixed in
|
| railsactivestorage | Affected
| Fixed in
|
| railsactivestorage | Affected
| Fixed in
|
AI-suggested
Organizations should immediately upgrade Rails Active Storage to versions 8.1.2.1, 8.0.4.1, or 7.2.3.1 or later, where the vulnerability is patched. If upgrading is not immediately feasible, implement input validation and sanitization to ensure blob keys do not contain glob metacharacters before they reach the DiskService#delete_prefixed method. Restrict the ability to create or influence blob keys to trusted users or internal processes only. Employ file system permissions to limit the scope of deletions to only necessary directories, preventing broader file deletions. Monitor application logs for unusual file deletion patterns or errors related to Active Storage. Conduct code reviews to ensure no other parts of the application pass unescaped user input to file system globbing functions. Finally, maintain regular backups of storage directories to enable recovery in case of accidental or malicious deletions.
Description
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#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. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.
References
- github.com/rails/rails/security/advisories/GHSA-73f9-jhhh-hr5m (opens in a new tab)
- github.com/rails/rails/commit/8c9676b803820110548cdb7523800db43bc6874c (opens in a new tab)
- github.com/rails/rails/commit/955284d26e469a9c026a4eee5b21f0414ab0bccf (opens in a new tab)
- github.com/rails/rails/commit/fa19073546360856e9f4dab221fc2c5d73a45e82 (opens in a new tab)
- github.com/rails/rails/releases/tag/v7.2.3.1 (opens in a new tab)
- github.com/rails/rails/releases/tag/v8.0.4.1 (opens in a new tab)
- github.com/rails/rails/releases/tag/v8.1.2.1 (opens in a new tab)