Skip to main content
VulnerabilityPublished

CVE-2026-33202: rails activestorage · Injection

Affects rails activestorageSource CVE Database V5

0
Compare

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

CVSS 4.0 base score
6.6Medium
How severe the flaw is on the 0–10 CVSS scale.
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:U

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
railsactivestorageAffected
  • >=8.1.0.beta1 <8.1.2.1
Fixed in
  • 8.1.2.1
railsactivestorageAffected
  • >=8.0.0.beta1 <8.0.4.1
Fixed in
  • 8.0.4.1
railsactivestorageAffected
  • <7.2.3.1
Fixed in
  • 7.2.3.1

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

Community reviews

Loading reviews…