Rails ActiveStorage DiskService Path Traversal (v < 8.1.2.1, 8.0.4.1, 7.2.3.1)
CVE-2026-33195 Published on March 23, 2026
Rails Active Storage has possible Path Traversal in DiskService
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.
Vulnerability Analysis
CVE-2026-33195 can be exploited with network access, requires user interaction and user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality and integrity, and no impact on availability.
Weakness Type
What is a Directory traversal Vulnerability?
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2026-33195 has been classified to as a Directory traversal vulnerability or weakness.
Products Associated with CVE-2026-33195
Want to know whenever a new CVE is published for Red Hat 3scale Amp? stack.watch will email you.
Affected Versions
rails activestorage:- Version >= 8.1.0.beta1, < 8.1.2.1 is affected.
- Version >= 8.0.0.beta1, < 8.0.4.1 is affected.
- Version < 7.2.3.1 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.