{"id":"ghsa-ghsa-mhj6-xc86-54m8","seq":13099067,"kind":"advisory","title":"Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link","url":"https://github.com/advisories/GHSA-mhj6-xc86-54m8","permalink":"https://vulnpulse.app/items/ghsa-ghsa-mhj6-xc86-54m8","summary":"影響: rubygems:rack >= 2.2.0, < 2.2.26 → 2.2.26, rubygems:rack >= 3.0.0, < 3.1.24 → 3.1.24, rubygems:rack >= 3.2.0, < 3.2.9 → 3.2.9\nRack::Directory#get decides whether a request path containing .. stays inside the root by expanding it lexically with File.expand_path, but then joins the original, unnormalized path onto the root and passes it to File.stat and Dir.foreach. The operating system resolves a symbolic link before applying a .. that follows it, so when a directory under the root is a symlink, a request such as /system/../ passes the check while the filesystem lists the parent of the link's target, and /system/../con…","severity":"medium","cvss":null,"techs":["ruby"],"cves":["CVE-2026-142593"],"tags":["GHSA-mhj6-xc86-54m8","rack","rack","rack"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-03T23:44:42.000Z","fetched_at":"2026-12-05T02:20:50.705Z"}