CVE-2026-33195: Rails Active Storage has possible Path Traversal in DiskService

Published Mar 23, 2026
·
Updated

Impact Active Storage's DiskService#pathfor 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.

Releases The fixed releases are available at the normal locations.

Other sources

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#pathfor 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.

MITRE

Affected Software

6 affected componentsFixes available
rubygems/activestorage<7.2.3.1
7.2.3.1
rubygems/activestorage>=8.0.0.beta1<8.0.4.1
8.0.4.1
rubygems/activestorage>=8.1.0.beta1<8.1.2.1
8.1.2.1
rubyonrails Rails<7.2.3.1
rubyonrails Rails>=8.0.0<8.0.4.1
rubyonrails Rails>=8.1.0<8.1.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/activestorage to a version that resolves this vulnerability.

    Fixed in 7.2.3.1
  2. Upgrade

    Upgrade rubygems/activestorage to a version that resolves this vulnerability.

    Fixed in 8.0.4.1
  3. Upgrade

    Upgrade rubygems/activestorage to a version that resolves this vulnerability.

    Fixed in 8.1.2.1
  4. Upgrade

    Upgrade Rails Active Storage (DiskService#path_for) to a version that resolves this vulnerability.

    Fixed in 8.1.2.1
  5. Upgrade

    Upgrade Rails Active Storage (DiskService#path_for) to a version that resolves this vulnerability.

    Fixed in 8.0.4.1
  6. Upgrade

    Upgrade Rails Active Storage (DiskService#path_for) to a version that resolves this vulnerability.

    Fixed in 7.2.3.1

Event History

Mar 23, 2026
Advisory Published
via GitHub·09:17 PM
Data Sourced
via GitHub·09:17 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·11:31 PM
Data Sourced
via MITRE·11:31 PM
DescriptionWeakness
Mar 24, 2026
Data Sourced
via Red Hat·12:02 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33195?

The severity of CVE-2026-33195 is classified as high due to the potential for path traversal vulnerabilities.

2

How do I fix CVE-2026-33195?

To fix CVE-2026-33195, upgrade to Active Storage versions 7.2.3.1, 8.0.4.1, or 8.1.2.1 or later.

3

Which versions of Active Storage are affected by CVE-2026-33195?

Active Storage versions prior to 7.2.3.1, 8.0.4.1, and 8.1.2.1 are affected by CVE-2026-33195.

4

What causes CVE-2026-33195?

CVE-2026-33195 is caused by insufficient path validation in the DiskService's path_for method in Active Storage.

5

Is CVE-2026-33195 a common vulnerability?

CVE-2026-33195 is a specific vulnerability affecting Active Storage in Rails and may not be common across all applications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203