{"id":"CVE-2026-33202","published":"2026-03-23T23:34:52Z","modified":"2026-03-24T15:44:19Z","title":"Rails Active Storage has possible glob injection in its DiskService","vendor":"rails","product":"activestorage","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.6,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00728,"percentile":0.55111,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-73f9-jhhh-hr5m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/8c9676b803820110548cdb7523800db43bc6874c","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/955284d26e469a9c026a4eee5b21f0414ab0bccf","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/fa19073546360856e9f4dab221fc2c5d73a45e82","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v7.2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.0.4.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/releases/tag/v8.1.2.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":11.02},{"name":"CVSS severity","points":4.62}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"activestorage","versions":[">= 8.1.0.beta1, < 8.1.2.1",">= 8.0.0.beta1, < 8.0.4.1","< 7.2.3.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-24T15:42:33.496549Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"activestorage","vulnerableRanges":[">=8.1.0.beta1, <8.1.2.1",">=8.0.0.beta1, <8.0.4.1","<7.2.3.1"],"patched":["8.1.2.1","8.0.4.1","7.2.3.1"],"from":["GHSA-73f9-jhhh-hr5m"],"provenance":"source"}],"summary":{"text":"The flaw is in the DiskService of Rails' Active Storage component, where its delete_prefixed method passes blob keys to Dir.glob without escaping glob metacharacters, an improper neutralization issue. An attacker with network access and no privileges or user interaction can cause unintended files in the storage directory to be deleted, provided blob keys contain attacker-controlled input or custom keys with glob metacharacters.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:44Z"},"euvd":{"id":"EUVD-2026-14634","exploited":false,"provenance":"source"}}