# CVE-2026-22860: Rack has a Directory Traversal via Rack:Directory

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 2.2.22, 3.1.20, 3.2.5 (CNA); fix release not confirmed
- Status: published
- Published: 2026-02-18 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-22860, DEBIAN-CVE-2026-22860, CGA-4jjq-h46w-8g9m, CGA-4ph6-m76c-3p28, CGA-5f62-p65q-2p4w, CGA-5hq7-4v94-fpxq, CGA-6frq-mwx7-pc3r, CGA-6h2h-93xg-hm9r, CGA-6j2f-8pfp-g484, CGA-7wvh-fh8f-6fpp, CGA-848r-2cgw-xv55, CGA-8h3v-5v6r-2945, CGA-cp76-frj6-f7q6, CGA-fqc3-fc28-wm47, CGA-g797-f55w-82cm, CGA-hhqh-2p7q-pcqr, CGA-j5cj-q38v-5xqg, CGA-p26p-97p2-7hhh, CGA-prxp-98w2-cxhj, CGA-qhf9-gjpf-4fvm, CGA-rcfw-29q8-w5ph, CGA-rp47-3j7v-rjqr, CGA-rr6v-8fgf-pxc5, CGA-rvmc-8h38-pcq9, CGA-vfx3-469h-3hfh, CGA-x4rp-42hr-585r, CGA-2h9j-5472-2pvm, CGA-2q76-9jgx-vxgf, CGA-2x8m-6339-mwfr, CGA-39mp-2gpf-75jj, CGA-3c9g-fgr9-8xp6, CGA-3fxg-hfv5-7pmx, CGA-3qhg-h28v-w952, CGA-4p27-8jg8-5jxw, CGA-54pm-wgwx-j573, CGA-5c8r-7g39-w5pv, CGA-5fgh-fvw6-p5jp, CGA-5m7x-66j7-jm7q, CGA-5wfp-5q8r-fg7f, CGA-65rf-vwv6-wpqx, CGA-6m99-3pwc-wc9w, CGA-733g-8f6p-696g, CGA-759x-r3f4-2638, CGA-7gvw-xrg8-hphg, CGA-7m73-xw3x-75jw, CGA-7r2f-vcqq-mr4w, CGA-7x7j-hjc8-hc6v, CGA-7xm4-q2xv-jfx2, CGA-829h-xrfp-j2fx, CGA-829j-hww9-g8wg, CGA-8g42-q7q5-v697, CGA-8qw2-3v7f-6pm9, CGA-8wf4-hg6g-w2p8, CGA-98mx-m926-p5v7, CGA-9f7r-wc9m-5vfj, CGA-9vh5-w5v2-49mc, CGA-c2p3-p4mf-g857, CGA-c3hx-fww4-979w, CGA-c6mr-mmrx-qfrc, CGA-cf5p-734j-68j9, CGA-cfh8-w7xr-hwwj, CGA-cj43-9xjm-8rc9, CGA-cmvf-38rq-9r22, CGA-cp5m-x2wh-q732, CGA-cxfx-g8cr-mxfx, CGA-f4qh-cchc-wjcf, CGA-f5px-8827-49j7, CGA-fh7w-7gcm-6p4m, CGA-fmvw-27mg-234x, CGA-frfv-8hwc-r647, CGA-g2w5-wmhg-g83h, CGA-gcr2-8jmj-q575, CGA-ghqg-qp59-35m4, CGA-gj6c-xc83-h4pj, CGA-gr9g-p5f2-gvqg, CGA-h5q5-gh65-8j2g, CGA-hqq8-x358-2pw7, CGA-hx5g-c3f3-76m6, CGA-j5gm-qmp4-89v2, CGA-j838-wf79-7gpw, CGA-j8gm-hw85-f78h, CGA-jcgv-hmpj-vvgw, CGA-jf3w-46cg-3x24, CGA-jf6v-cfjj-pqv4, CGA-jpxm-pvp3-vj8v, CGA-m29g-3hp4-324v, CGA-mgg6-jjx5-89mq, CGA-mgrm-jjm2-6c44, CGA-mqm7-gj98-rh29, CGA-mw63-mpp8-346x, CGA-p2wm-8h8v-rjqc, CGA-pcjf-cxhq-mgj6, CGA-pjph-wrcc-8vc5, CGA-pm23-mm6c-hhf7, CGA-pmfw-h4w7-qx2j, CGA-prxv-hwg6-3vv8, GHSA-mxw3-3hh2-x2mh, CGA-q2qf-r7p7-69xx, CGA-q3x7-hfvq-mq8m, CGA-q56q-6cr5-p9rv, CGA-q768-m9j5-5vgg, CGA-q94v-3xm3-83qp, CGA-q9jg-xgcj-4ppp, CGA-qcc2-cwmv-q9gf, CGA-qh4c-4m35-5jh8, CGA-qm7f-9vv3-53ch, CGA-qqmp-6jg5-pphx, CGA-qwxp-v2w7-ggqh, CGA-r2fq-h82c-jp9p, CGA-r4xh-5ww2-2x8j, CGA-r58g-524j-c373, CGA-r624-q5hw-m6g4, CGA-r6vf-gj6g-fjv4, CGA-rp6f-7487-h42m, CGA-rwrc-hq2f-pwpr, CGA-rx2r-hwf9-7xf5, CGA-rxg6-hp7c-rwcv, CGA-vh2r-9v9h-hq9p, CGA-w7xg-f4cf-9xr8, CGA-w85v-3qj6-wvv6, CGA-w87c-vfq3-h5w6, CGA-wgrm-qwqw-6367, CGA-ww6r-f2gh-gxvj, CGA-wxq2-cq7j-345h, CGA-x5r9-cqm9-fjr8, CGA-x6mm-f22x-hqfv, CGA-x7vj-35xx-p8v8, CGA-x8mw-7c39-r264, CGA-x8pm-xjxp-f64x, CGA-xc9r-8rhx-rwfr, CGA-xrfx-gx83-2pr6
- Record: https://cvemate.com/vulnerability/CVE-2026-22860 · JSON: https://cvemate.com/vulnerability/CVE-2026-22860/json

## 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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.78%, percentile 57.276%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 80)

- chainguard gitlab-exporter-18.6 (Chainguard): \< 18.6.6-r1
- chainguard gitlab-exporter-18.7 (Chainguard): \< 18.7.4-r1
- chainguard gitlab-exporter-18.8 (Chainguard): \< 18.8.4-r1
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r13
- chainguard gitlab-rails-ce-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): \< 18.8.7-r0
- chainguard gitlab-rails-ce-18.9 (Chainguard): \< 18.9.3-r0
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.4 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): \< 18.8.7-r0

## References

- <https://github.com/rack/rack/security/advisories/GHSA-mxw3-3hh2-x2mh>
- <https://github.com/rack/rack/commit/75c5745c286637a8f049a33790c71237762069e7>
- <https://access.redhat.com/security/cve/CVE-2026-22860>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2440737>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22860.json>
- <https://ubuntu.com/security/CVE-2026-22860>
- <https://www.cve.org/CVERecord?id=CVE-2026-22860>
- <https://ubuntu.com/security/notices/USN-8066-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-22860>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22860.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22860>
- <https://github.com/rack/rack>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2026-22860.yml>

---

Data as of 2026-12-05T08:49:58.265Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
