Junglewise Threat Intelligence

CVE-2026-33195: Ruby on Rails Active Storage path traversal in DiskService

CVE-2026-33195 · Severity: critical · CVSS 9.8 · Published 2026-03-24

Executive brief

Active Storage is a component of the Ruby on Rails framework used to manage file uploads and storage. A security flaw allows attackers to bypass directory restrictions if an application uses untrusted user input to name or retrieve files. This could allow an unauthorized person to read, modify, or delete sensitive files on the server, potentially leading to a full system compromise or data breach.

Technical details

A path traversal vulnerability exists in Active Storage's DiskService#path_for method. The component fails to validate that a resolved filesystem path remains within the designated storage root directory. If an application passes user-controlled input as a 'blob key', an attacker can use traversal sequences like '../' to escape the storage directory. This enables arbitrary file read, write, or delete operations on the host server. The issue is fixed in versions 8.1.2.1, 8.0.4.1, and 7.2.3.1 by introducing strict validation and raising an InvalidKeyError for dot segments or paths outside the root.

Affected products

  • Ruby on Rails Active Storage (Rails) < 7.2.3.1, >= 8.0.0.beta1 < 8.0.4.1, >= 8.1.0.beta1 < 8.1.2.1

Timeline

  • 2026-03-24: disclosed
  • 2026-03-24: advisory
  • 2026-03-23: patched

References

Related threats