{"id":"CVE-2026-142593","summary":"Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link.","details":"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.","aliases":["GHSA-mhj6-xc86-54m8"],"modified":"2026-12-02T23:00:11.375787876Z","published":"2026-12-02T21:39:42.905Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22","CWE-59"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142593.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142593.json"},{"type":"FIX","url":"https://github.com/rack/rack/commit/42af7a7b10c54021e060e52c91a590a5d5f2a48d"},{"type":"FIX","url":"https://github.com/rack/rack/commit/c7102e91e4a1ee832b006790de31b3d5b207b89e"},{"type":"FIX","url":"https://github.com/rack/rack/commit/d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"},{"type":"WEB","url":"https://github.com/rack/rack/releases/tag/v2.2.26"},{"type":"WEB","url":"https://github.com/rack/rack/releases/tag/v3.1.24"},{"type":"WEB","url":"https://github.com/rack/rack/releases/tag/v3.2.9"},{"type":"ADVISORY","url":"https://github.com/rack/rack/security/advisories/GHSA-mhj6-xc86-54m8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142593"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rack/rack","events":[{"introduced":"39d501a28c1fe51284addfe6dacffafb69d49849"},{"fixed":"320778d0cdd17d8791d986626e2d09084d32c84d"},{"introduced":"52901caf09ebcda879512a8605059963a49df55d"},{"fixed":"f1ebc3d8c3eea89908b931db76b131fea9bda52b"},{"introduced":"b68251c03788ff39d4a4b25424df7360426e4afd"},{"fixed":"52941a02842fd956e3c5532147116354a0240149"},{"fixed":"42af7a7b10c54021e060e52c91a590a5d5f2a48d"},{"fixed":"c7102e91e4a1ee832b006790de31b3d5b207b89e"},{"fixed":"d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2.2.0"},{"fixed":"2.2.26"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"strategy":"StringRangeExpression","range":[{"introduced":"3.0.0"},{"fixed":"3.1.24"}],"source":"AFFECTED_FIELD"},{"strategy":"StringRangeExpression","range":[{"introduced":"3.2.0"},{"fixed":"3.2.9"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"42af7a7b10c54021e060e52c91a590a5d5f2a48d"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"c7102e91e4a1ee832b006790de31b3d5b207b89e"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"320778d0cdd17d8791d986626e2d09084d32c84d"}],"source":"REFERENCES_TAG","original_tag":"v2.2.26"},{"source":"REFERENCES_TAG","original_tag":"v3.1.24","range":[{"fixed":"f1ebc3d8c3eea89908b931db76b131fea9bda52b"}]},{"source":"REFERENCES_TAG","original_tag":"v3.2.9","range":[{"fixed":"52941a02842fd956e3c5532147116354a0240149"}]}]}}],"versions":["v2.2.25","v3.1.23","v3.2.8","v2.2.24","v3.1.22","v3.2.7","v2.2.23","v3.2.6","v3.1.21","v3.2.5","v3.1.20","v2.2.22","v3.1.19","v3.2.4","v2.2.21","v3.2.3","v3.1.18","v2.2.20","v2.2.19","v3.1.17","v3.2.2","v3.2.1","v2.2.18","v2.2.17","v3.2.0","v3.1.16","v2.2.16","v3.1.15","v2.2.15","v2.2.14","v3.1.14","v3.1.13","v2.2.13","v3.1.12","v3.1.11","v2.2.12","v3.1.10","v2.2.11","v2.2.10","v3.1.9","v3.1.8","v3.1.7","v2.2.9","v3.1.6","v3.1.5","v3.1.4","v3.1.3","v3.1.2","v3.1.0","v2.2.8","v2.2.7","v2.2.6.2","v2.2.6.1","v2.2.6","v2.2.5","2.2.4","3.0.0","2.2.3","v2.2.2","v2.2.1","2.2.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142593.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}