{"id":"CVE-2026-22860","aliases":["GHSA-mxw3-3hh2-x2mh"],"url":"https://o3.security/vulnerability/CVE-2026-22860","summary":"Rack has a Directory Traversal via Rack:Directory","details":"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.","published":"2026-02-18T18:45:02.095Z","modified":"2026-07-16T03:30:51.586379124Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"rack","fixedVersion":"2.2.22"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"3.1.20"},{"ecosystem":"RubyGems","name":"rack","fixedVersion":"3.2.5"}],"fix":{"url":"https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7","label":"rack/rack@75c5745"},"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-22860"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22860.json"},{"type":"ADVISORY","url":"https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22860"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2440737"},{"type":"FIX","url":"https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-16T03:30:51.586379124Z"}}