GHSA-73f9-jhhh-hr5m CVE-2026-33202
Rails Active Storage has possible glob injection in its DiskService
- Severity
- 0.0 / 10
- Critical · CVSS 4.0
- Exploit chance (EPSS)
- 0.67%
- Chance of exploitation in the next 30 days. Higher than 52.07% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- Fix
8.1.2.1- Upgrade activestorage to this version or later
Description
Impact
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.
Releases
The fixed releases are available at the normal locations.
Affected versions
RubyGems
| Package | Vulnerable | Fixed in |
|---|---|---|
| activestorage | >= 8.1.0.beta1, < 8.1.2.1 |
8.1.2.1 |
| activestorage | >= 8.0.0.beta1, < 8.0.4.1 |
8.0.4.1 |
| activestorage | < 7.2.3.1 |
7.2.3.1 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
activestorage RubyGems → 8.1.2.1
- bundler
bundle update activestorage # Gemfile: gem "activestorage", ">= 8.1.2.1"
Severity breakdown
CVSS 4.0 0.0
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
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality (vulnerable system)
- None
- Integrity (vulnerable system)
- High
- Availability (vulnerable system)
- None
- Confidentiality (subsequent systems)
- None
- Integrity (subsequent systems)
- None
- Availability (subsequent systems)
- None
- Exploit maturity
- Unreported
CVSS 3.1 9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Weakness
CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
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.
How to prevent it
- Requirements: Programming languages and supporting technologies might be chosen which are not subject to these issues.
- Implementation: Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.
References
Advisories
Packages
Other links
- github.com/rails/rails/security/advisories/GHSA-73f9-jhhh-hr5m
- github.com/rails/rails/commit/8c9676b803820110548cdb7523800db43bc6874c
- github.com/rails/rails/commit/955284d26e469a9c026a4eee5b21f0414ab0bccf
- github.com/rails/rails/commit/fa19073546360856e9f4dab221fc2c5d73a45e82
- github.com/rails/rails/releases/tag/v7.2.3.1
- github.com/rails/rails/releases/tag/v8.0.4.1
- github.com/rails/rails/releases/tag/v8.1.2.1
- github.com/rubysec/ruby-advisory-db/blob/master/gems/activestorage/CVE-2026-332…
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-xr9x-r78c-5hrm Active Storage has possible arbitrary file read and remote code execution in Active Storage variant processing | Critical | Also affects activestorage |
| GHSA-p9fm-f462-ggrg Rails Active Storage has a possible DoS vulnerability in proxy mode via multi-range requests | Medium | Also affects activestorage |
| GHSA-9xrj-h377-fr87 Rails Active Storage has possible Path Traversal in DiskService | Critical | Also affects activestorage |
| GHSA-r46p-8f7g-vvvg Rails Active Storage has a possible DoS vulnerability when in proxy mode via Range requests | High | Also affects activestorage |
| GHSA-qcfx-2mfw-w4cg Rails Active Storage has possible content type bypass via metadata in direct uploads | Medium | Also affects activestorage |
| GHSA-r4mg-4433-c7g3 Active Storage allowed transformation methods that were potentially unsafe | High | Also affects activestorage |
| GHSA-8h22-8cf7-hq6g Rails has possible Sensitive Session Information Leak in Active Storage | Medium | Also affects activestorage |
| GHSA-w749-p3v6-hccq Possible code injection vulnerability in Rails / Active Storage | Critical | Also affects activestorage |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor