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

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-03-23T21:18:56.000Z
- Modified: 2026-09-10T03:50:37.852Z
- Also known as: GHSA-73f9-jhhh-hr5m
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rails activestorage: >= 8.1.0.beta1, < 8.1.2.1; >= 8.0.0.beta1, < 8.0.4.1; < 7.2.3.1
- activestorage (RubyGems): from 8.1.0.beta1 before 8.1.2.1; from 8.0.0.beta1 before 8.0.4.1; before 7.2.3.1
- rubyonrails rails: before 7.2.3.1; from 8.0.0 before 8.0.4.1; from 8.1.0 before 8.1.2.1

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-73f9-jhhh-hr5m> (vendor-advisory, web)
- <https://github.com/rails/rails/commit/8c9676b803820110548cdb7523800db43bc6874c> (patch, web)
- <https://github.com/rails/rails/commit/955284d26e469a9c026a4eee5b21f0414ab0bccf> (patch, web)
- <https://github.com/rails/rails/commit/fa19073546360856e9f4dab221fc2c5d73a45e82> (patch, web)
- <https://github.com/rails/rails/releases/tag/v7.2.3.1> (release-notes, web)
- <https://github.com/rails/rails/releases/tag/v8.0.4.1> (release-notes, web)
- <https://github.com/rails/rails/releases/tag/v8.1.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33202> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-33202.yml> (web)

## Sources

- CVE List: [CVE-2026-33202](https://www.cve.org/CVERecord?id=CVE-2026-33202), CVE Terms of Use, modified 2026-03-24
- GitHub Advisory Database: [GHSA-73f9-jhhh-hr5m](https://github.com/advisories/GHSA-73f9-jhhh-hr5m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33202](https://nvd.nist.gov/vuln/detail/CVE-2026-33202), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33202 · Whole record: https://cve.day/CVE-2026-33202.json · Rebuilt by cve.day 2026-11-25T22:59:16.511Z
