Vulnerabilities

CVE-2026-33195

Critical 9.8 CVSS 3.1

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#path_for` does not validate that the resolved filesystem path remains within the storage root directory. If a blob key containing path traversal sequences (e.g. `../`) is used, it could allow reading, writing, or deleting arbitrary files on the server. Blob keys are expected to be trusted strings, but some applications could be passing user input as keys and would be affected. Versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 contain a patch.

Description as published by the source, in English.

Key facts

Published
2026-03-24
Last modified
2026-07-15
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.6 % higher than 44 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
activestorage (RubyGems) < 7.2.3.1 Affected
activestorage (RubyGems) ≥ 8.0.0.beta1, < 8.0.4.1 Affected
activestorage (RubyGems) ≥ 8.1.0.beta1, < 8.1.2.1 Affected
Rubyonrails Rails < 7.2.3.1 Affected
Rubyonrails Rails ≥ 8.0.0, < 8.0.4.1 Affected
Rubyonrails Rails ≥ 8.1.0, < 8.1.2.1 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities