# CVE-2026-142593: Rack: \`Rack::Directory\` lists directories outside the root when \`..\` follows a symbolic link.

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-03
- Aliases: GHSA-mhj6-xc86-54m8, CGA-2cc2-p6g3-jpcg, CGA-6v3g-5jcg-jh63, CGA-7qvp-rhf3-963g, CGA-2525-3wpp-3f47, CGA-2cjh-9fqq-r92j, CGA-2gq3-238v-w4gv, CGA-2jjj-5grh-jgqj, CGA-39m8-g7gg-3863, CGA-3mg2-q2rx-9j2w, CGA-3vc3-8vmv-gpp4, CGA-4fx5-qpg7-rxhq, CGA-4m76-pqp4-mqqp, CGA-54qf-m4vc-f4ww, CGA-5qww-hp9q-pff7, CGA-5wh9-4wcf-fq38, CGA-69x2-8r94-j48h, CGA-6cp5-76r3-w38h, CGA-6j2h-w2cw-r238, CGA-6wjw-j4pj-2g95, CGA-8623-r4qh-fv4r, CGA-9prc-5gm3-49h5, CGA-9xjx-qv3x-pvph, CGA-c76c-p79w-2p84, CGA-f8qg-h872-276w, CGA-fjgv-8392-66gh, CGA-fq2r-g9p8-p77v, CGA-gvgx-64pq-2m4x, CGA-hcmg-8cph-hpq8, CGA-hgr8-j2g7-x2xf, CGA-jfrf-7248-2cgf, CGA-jmcx-v2cj-jwwm, CGA-jwf4-358h-c2vg, CGA-vrvh-jvmc-7r44, CGA-vw97-hcgg-x6jc, CGA-wq47-4v34-jp55, CGA-8wx2-7qf9-hj27, CGA-c28g-62r4-rrpw, CGA-xr54-v58c-m4cp, CGA-26xg-87gg-qr8r, CGA-2x36-f3p3-xcj8, CGA-3fwj-r49q-g2wv, CGA-44vv-4jrx-mrcm, CGA-4844-23q4-2v77, CGA-4cwh-4qqp-w93q, CGA-569p-7rv5-cmqp, CGA-5g6x-q48v-j263, CGA-74mx-9f7j-cr2w, CGA-84v5-wxwx-wq6f, CGA-88qw-4xcr-gv4r, CGA-8rxm-q626-5h8h, CGA-c4w3-m98x-rwqw, CGA-cw62-9685-v5w2, CGA-f9p8-mf7f-4wqp, CGA-fhxw-mr3j-v742, CGA-gfv8-697g-c74q, CGA-j5xf-hgmp-3xww, CGA-jh5p-r759-22v3, CGA-m3g6-9pgp-58wq, CGA-mc28-2ffw-54v4, CGA-mgc4-2485-xmp6, CGA-p3qq-926h-3r4x, CGA-p549-c8fr-92r7, CGA-q3rm-vhmr-m65q, CGA-qjx2-vh52-x8q8, CGA-vj4p-p7v3-vgqj, CGA-vwpm-wqrv-fjg4, CGA-w34r-73vq-27xx, CGA-wjcg-m423-mv2h, CGA-f2f6-785f-f477, CGA-m955-9ch8-c3cf, CGA-p64p-pxqf-wc2r, CGA-rcg8-pwm7-5qrc, CGA-xfwh-2pqg-vm43, CGA-95f9-v2c2-g6f9, CGA-q973-3r5x-7wcc
- Record: https://cvemate.com/vulnerability/CVE-2026-142593 · JSON: https://cvemate.com/vulnerability/CVE-2026-142593/json

## Description

```text
Rack is a modular Ruby web server interface. From 2.2.0 until 2.2.26, 3.1.24, and 3.2.9, Rack::Directory#get checks a path containing dot-dot segments with File.expand_path but then passes the original unnormalized path to File.stat and Dir.foreach instead of first applying Utils.clean_path_info. Earlier Rack versions reject every path containing dot-dot and are not affected. When a directory beneath the served root is a symbolic link followed by .., the operating system resolves the link before applying the dot-dot segment, allowing an unauthenticated request to list the target's parent or siblings outside the root. The disclosure is limited to directory entry names, sizes, and modification times because Rack::Files normalizes paths before serving file contents. This issue is fixed in versions 2.2.26, 3.1.24, and 3.2.9.
```

## Signals

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

## Affected (first 20 of 45)

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-19.6 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.2 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.3 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.4 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.5 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.3 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.4 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/rack/rack/security/advisories/GHSA-mhj6-xc86-54m8>
- <https://github.com/rack/rack/commit/42af7a7b10c54021e060e52c91a590a5d5f2a48d>
- <https://github.com/rack/rack/commit/c7102e91e4a1ee832b006790de31b3d5b207b89e>
- <https://github.com/rack/rack/commit/d73bdad9e2ebec7217ecd3e9bbc079f076b0d120>
- <https://github.com/rack/rack/releases/tag/v2.2.26>
- <https://github.com/rack/rack/releases/tag/v3.1.24>
- <https://github.com/rack/rack/releases/tag/v3.2.9>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-142593>
- <https://github.com/rack/rack>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142593.json>

---

Data as of 2026-12-05T08:26:46.520Z. 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
