CVE-2026-33195: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rails activestorage
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 Analysis
Technical Summary
CVE-2026-33195 is a CWE-22 path traversal vulnerability in the Rails Active Storage component. The vulnerability arises because the DiskService#path_for method does not ensure that the resolved filesystem path stays within the designated storage root directory. If an attacker can supply a blob key containing path traversal sequences (e.g., '../'), they may manipulate file paths to access or modify files outside the intended directory. This is particularly impactful if applications use user-supplied input as blob keys, which is not the expected usage. The issue is fixed in versions 8.1.2.1, 8.0.4.1, and 7.2.3.1.
Potential Impact
Exploitation of this vulnerability could allow an attacker to read, write, or delete arbitrary files on the server hosting the Rails application. This can lead to unauthorized data access or modification, potentially compromising the integrity and confidentiality of the system. The CVSS 4.0 base score is 8.0 (high severity), reflecting network attack vector, no privileges required, no user interaction, and high impact on confidentiality and integrity.
Mitigation Recommendations
A patch is available in Rails Active Storage versions 8.1.2.1, 8.0.4.1, and 7.2.3.1. Users should upgrade to one of these fixed versions to remediate the vulnerability. Since this is not a cloud service, remediation depends on applying these official fixes. Applications should also ensure that blob keys are not derived from untrusted user input to reduce risk.
CVE-2026-33195: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rails activestorage
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.
CVSS v4.0
Score 8.0high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-33195 is a CWE-22 path traversal vulnerability in the Rails Active Storage component. The vulnerability arises because the DiskService#path_for method does not ensure that the resolved filesystem path stays within the designated storage root directory. If an attacker can supply a blob key containing path traversal sequences (e.g., '../'), they may manipulate file paths to access or modify files outside the intended directory. This is particularly impactful if applications use user-supplied input as blob keys, which is not the expected usage. The issue is fixed in versions 8.1.2.1, 8.0.4.1, and 7.2.3.1.
Potential Impact
Exploitation of this vulnerability could allow an attacker to read, write, or delete arbitrary files on the server hosting the Rails application. This can lead to unauthorized data access or modification, potentially compromising the integrity and confidentiality of the system. The CVSS 4.0 base score is 8.0 (high severity), reflecting network attack vector, no privileges required, no user interaction, and high impact on confidentiality and integrity.
Mitigation Recommendations
A patch is available in Rails Active Storage versions 8.1.2.1, 8.0.4.1, and 7.2.3.1. Users should upgrade to one of these fixed versions to remediate the vulnerability. Since this is not a cloud service, remediation depends on applying these official fixes. Applications should also ensure that blob keys are not derived from untrusted user input to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-17T22:16:36.721Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-33195","vendor":"Red Hat"}]
Threat ID: 69c1d434f4197a8e3ba0428e
Added to database: 03/24/2026, 00:00:52 UTC
Last enriched: 07/15/2026, 08:57:51 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 111
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.