Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 56%

CVE-2026-33195: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rails activestorage

0
High
VulnerabilityCVE-2026-33195cvecve-2026-33195cwe-22
Published: 03/23/2026 (03/23/2026, 23:31:41 UTC)
Source: CVE Database V5
Vendor/Project: rails
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U

Affected software

activestorage
pkg:gem/activestorage
Affected versions
<7.2.3.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 08:57:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses