CVE-2026-33195

9.8 CRITICAL
Published: March 24, 2026 Modified: March 24, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/rails/rails/releases/tag/v7.2.3.1
Source: security-advisories@github.com
Release Notes
https://github.com/rails/rails/releases/tag/v8.0.4.1
Source: security-advisories@github.com
Release Notes
https://github.com/rails/rails/releases/tag/v8.1.2.1
Source: security-advisories@github.com
Release Notes
https://github.com/rails/rails/security/advisories/GHSA-9xrj-h377-fr87
Source: security-advisories@github.com
Vendor Advisory

7 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
0.0%
10th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

rubyonrails