Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Rack | Rack | < 2.2.22 |
Related Weaknesses (CWE)
References
- https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7Patch
- https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mhExploitMitigationVendor Advisory
FAQ
What is CVE-2026-22860?
CVE-2026-22860 is a vulnerability with a CVSS score of 7.5 (HIGH). 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_examp...
How severe is CVE-2026-22860?
CVE-2026-22860 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-22860?
Check the references section above for vendor advisories and patch information. Affected products include: Rack Rack.