Vulnerability · Published Feb 18, 2026 · Assigned by GitHub_M
CVE-2026-22860Rack has a Directory Traversal via Rack:Directory
High 7.5
In plain English
A high-severity path traversal in rack from rack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-rack | 2.2.22-0+deb12u1 | DSA-6180-1 |
| Debian:12 | ruby-rack | 2.2.22-0+deb12u1 | DEBIAN-CVE-2026-22860 |
| Debian:13 | ruby-rack | 3.1.20-0+deb13u1 | DEBIAN-CVE-2026-22860 |
| Debian:13 | ruby-rack | 3.1.20-0+deb13u1 | DSA-6180-1 |
| Debian:14 | ruby-rack | 3.2.5-1 | DEBIAN-CVE-2026-22860 |
| RubyGems | rack | 3.2.5 | GHSA-mxw3-3hh2-x2mh |
| RubyGems | rack | 3.1.20 | GHSA-mxw3-3hh2-x2mh |
| RubyGems | rack | 2.2.22 | GHSA-mxw3-3hh2-x2mh |
| Ubuntu:24.04:LTS | ruby-rack | 2.2.7-1ubuntu0.6 | UBUNTU-CVE-2026-22860 |
| Ubuntu:25.10 | ruby-rack | 3.1.16-0.1ubuntu0.2 | UBUNTU-CVE-2026-22860 |
| Ubuntu:26.04:LTS | ruby-rack | 3.2.4-1ubuntu1 | UBUNTU-CVE-2026-22860 |
| Ubuntu:26.10 | ruby-rack | 3.2.4-1ubuntu1 | UBUNTU-CVE-2026-22860 |
Affected products (as reported)
Weakness: CWE-22, CWE-548 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh x_refsource_CONFIRM
- https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-22860 vdb-entry, x_refsource_REDHAT
- RHBZ#2440737 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json x_sadp-csaf-vex