Skip to main content
← All vulnerabilities
CVE-2026-22860GHSA-MXW3-3HH2-X2MH

Rack has a Directory Traversal via Rack:Directory

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.22, 3.1.20, 3.2.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Rack is a modular Ruby web server interface. Prior to versions 2.2.22, 3.1.20, and 3.2.5, `Rack::Directory`’s path check used a string prefix match on the expanded path. A request like `/../root_example/` can escape the configured root if the target path starts with the root string, allowing directory listing outside the intended root. Versions 2.2.22, 3.1.20, and 3.2.5 fix the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • rack rack

    fixed in 2.2.22; From 3.0.0.beta1 · fixed in 3.1.20; From 3.2.0 · fixed in 3.2.5

  • rackRubyGems

    fixed in 2.2.22

  • rackRubyGems

    From 3.0.0.beta1 · fixed in 3.1.20

  • rackRubyGems

    From 3.2.0 · fixed in 3.2.5

References 2

GitHub · rack/rack