{"id":"CVE-2026-22860","published":"2026-02-18T18:45:02Z","modified":"2026-07-15T01:18:57Z","title":"Rack has a Directory Traversal via Rack:Directory","vendor":"rack","product":"rack","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.009,"percentile":0.57656,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-548","name":"Exposure of Information Through Directory Listing"}],"references":[{"url":"https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22860","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2440737","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.53},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"rack","affectedVersions":[{"vendor":"rack","product":"rack","versions":["< 2.2.22",">= 3.0.0.beta1, < 3.1.20",">= 3.2.0, < 3.2.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-18T19:27:31.243687Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rack","vulnerableRanges":["<2.2.22",">=3.0.0.beta1, <3.1.20",">=3.2.0, <3.2.5"],"patched":["2.2.22","3.1.20","3.2.5"],"from":["GHSA-mxw3-3hh2-x2mh"],"provenance":"source"}],"summary":{"text":"Rack's Rack::Directory component, which provides directory listings in the rack web server interface for Ruby, uses a string-prefix check on the expanded path that fails to confine requests to the configured root. An unauthenticated remote attacker can send a crafted request such as one containing \"/../\" sequences whose target path begins with the root string, which lets them list directories outside the intended root and expose their contents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:10:12Z"},"euvd":{"id":"EUVD-2026-7914","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-rack-cve-2026-22860","children":[{"from":"CVE-2026-22860","to":"CVE-2026-25500","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/rack/directory.rb"],"commits":["https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7","https://github.com/rack/rack/commit/f2f225f297b99fbee3d9f51255d41f601fc40aff"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-61772","published":"2025-10-07","fixed":"3.2.2","kev":false},{"cve":"CVE-2025-61780","published":"2025-10-10","fixed":"3.2.3","kev":false,"link":{"from":"CVE-2025-61780","to":"CVE-2026-22860","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"2.2.20","toFixed":"2.2.22","daysApart":131},{"kind":"version-step","provenance":"source","package":"RubyGems:rack","fromFixed":"3.1.18","toFixed":"3.1.20","daysApart":131}]}},{"cve":"CVE-2025-61919","published":"2025-10-10","fixed":"3.2.3","kev":false},{"cve":"CVE-2026-22860","published":"2026-02-18","fixed":"3.2.5","kev":false},{"cve":"CVE-2026-25500","published":"2026-02-18","fixed":"3.2.5","kev":false},{"cve":"CVE-2026-26961","published":"2026-04-02","fixed":"3.2.6","kev":false},{"cve":"CVE-2026-26962","published":"2026-04-02","fixed":"3.2.6","kev":false}],"package":"RubyGems:rack"}}