Rails Active Storage has possible Path Traversal in DiskService
Overview
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.
- Published
- 3/24/2026
- Last modified
- 7/15/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
rails rubyonrails | < 7.2.3.1 | Verify advisory The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability. | Source |
rails rubyonrails | ≥ 8.0.0, < 8.0.4.1 | Verify advisory The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability. | Source |
rails rubyonrails | ≥ 8.1.0, < 8.1.2.1 | Verify advisory The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability. | Source |
activestorage rails | >= 8.1.0.beta1, < 8.1.2.1 | Verify advisory The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability. | Source |
activestorage rails | >= 8.0.0.beta1, < 8.0.4.1 | Verify advisory The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability. | Source |
activestorage rails | < 7.2.3.1 | Verify advisory The supplementary CVE source changed after these NVD rules; verify the current advisory before confirming applicability. | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.