cve.bz

CVE-2026-33195 rubyonrails rails: Path traversal

8.0 highEPSS 0.6%Fix available

High (8.0) in rubyonrails rails. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in activestorage 7.2.3.1, 8.0.4.1, 8.1.2.1.

On this page
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.

Severity

CVSS 4.0

8.0 high
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-03-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-33195 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-33195?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-33195?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-33195 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubyonrails:railsbefore 7.2.3.1
rubyonrails:railsfrom 8.0.0 before 8.0.4.1
rubyonrails:railsfrom 8.1.0 before 8.1.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9xrj-h377-fr87RubyGemsactivestorage>=8.1.0.beta1 <8.1.2.18.1.2.1
GHSA-9xrj-h377-fr87RubyGemsactivestorage>=8.0.0.beta1 <8.0.4.18.0.4.1
GHSA-9xrj-h377-fr87RubyGemsactivestorage<7.2.3.17.2.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12rails2:6.1.7.10+dfsg-1~deb12u3DEBIAN-CVE-2026-33195 DLA-4829-1
Debian13rails2:7.2.2.2+dfsg-2~deb13u2DEBIAN-CVE-2026-33195 DSA-6546-1
Debian14rails2:7.2.3.1+dfsg-1DEBIAN-CVE-2026-33195
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2026-33195

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Satellite: The Active Storage engine is explicitly commented out and disabled at runtime across all Satellite/Foreman builds. No Satellite plugin or component re-enables Active Storage. Hence, Red Hat Satellite is not affected.

Red Hat's mitigation

To mitigate this issue, ensure that blob keys used by Active Storage are not derived from untrusted user input. Applications should validate and sanitize any user-provided data before it is used in blob keys to prevent path traversal sequences.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp20/systemAffected
Red Hat 3scale API Management Platform 23scale-amp21/systemAffected
Red Hat 3scale API Management Platform 23scale-amp21/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp22/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp22/zyncAffected
Red Hat 3scale API Management Platform 23scale-amp24/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp24/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp25/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp25/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp26/systemWill not fix
Red Hat 3scale API Management Platform 23scale-amp26/zyncWill not fix
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel7Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel7Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Will not fix
Red Hat Satellite 6rubygem-activestorageNot affected
Red Hat Satellite 6tfm-rubygem-activestorageNot affected
Red Hat Satellite 6tfm-rubygem-graphqlNot affected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-33195.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON