CVE-2026-142593
MEDIUM 5.3CVSS 3.1Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link.
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.
- Published
- 2 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-mhj6-xc86-54m8
- Sources
- NVDJSONCVE ListJSONOSV GHSA-mhj6-xc86-54m8JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | rack | rack | = >= 2.2.0, < 2.2.26; = >= 3.0.0, < 3.1.24; = >= 3.2.0, < 3.2.9 | |
| OSV | RubyGems | rack | >= 2.2.0, < 2.2.26 | 2.2.26 |
| OSV | RubyGems | rack | >= 3.0.0, < 3.1.24 | 3.1.24 |
| OSV | RubyGems | rack | >= 3.2.0, < 3.2.9 | 3.2.9 |
References
- https://github.com/rack/rack/commit/42af7a7b10c54021e060e52c91a590a5d5f2a48d · x_refsource_MISC, WEB
- https://github.com/rack/rack/commit/c7102e91e4a1ee832b006790de31b3d5b207b89e · x_refsource_MISC, WEB
- https://github.com/rack/rack/commit/d73bdad9e2ebec7217ecd3e9bbc079f076b0d120 · x_refsource_MISC, WEB
- https://github.com/rack/rack/releases/tag/v2.2.26 · x_refsource_MISC, WEB
- https://github.com/rack/rack/releases/tag/v3.1.24 · x_refsource_MISC, WEB
- https://github.com/rack/rack/releases/tag/v3.2.9 · x_refsource_MISC, WEB
- https://github.com/rack/rack/security/advisories/GHSA-mhj6-xc86-54m8 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142593 · ADVISORY
- https://github.com/rack/rack · PACKAGE
History
- 4 Dec 2026 01:56 UTC · OSV: first stored (published 3 Dec 2026)
- 3 Dec 2026 19:56 UTC · NVD: updated (other details)
- 3 Dec 2026 18:56 UTC · CVE List: updated (other details)
- 2 Dec 2026 22:21 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 21:47 UTC · CVE List: first stored (published 2 Dec 2026)