CVE-2026-142593: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link
Affects mailcatcherSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium · fixed in 2.2.26 : update mailcatcher when convenient.
Data as of 4 Dec 2026, 18:46 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.3 |
|---|
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.2.26, 3.1.24, 3.2.9
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade rack to 2.2.26; rack to 3.1.24; rack to 3.2.9.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmailcatcherpkg:brew/mailcatcherOther threats | Affected
| Fixed in– |
RubyGemsrackpkg:gem/rackOther threats | Affected
| Fixed in
|
RubyGemsrackpkg:gem/rackOther threats | Affected
| Fixed in
|
RubyGemsrackpkg:gem/rackOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Update to a patched version of Rack where Rack::Directory normalizes request paths with Utils.clean_path_info before filesystem access, consistent with Rack::Files. Alternatively, avoid using symbolic links to directories under the root served by Rack::Directory or restrict access to trusted clients only. At reverse proxies, reject requests containing '..' or encoded '%2E%2E' path segments to prevent traversal attempts.
Description
CVE-2026-142593 is a vulnerability in Rack::Directory where directory listings can expose files outside the intended root directory when symbolic links are present. This occurs because the path normalization check and the actual filesystem access use different methods, allowing traversal outside the root via symlinks followed by '..' segments. The issue leaks directory names, sizes, and modification times but does not disclose file contents. It affects all Rack versions since 2.2.0 and is commonly exploitable in setups using symbolic links like Capistrano deployments.
References
- github.com/rack/rack/security/advisories/GHSA-mhj6-xc86-54m8 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-142593 (opens in a new tab)
- github.com/rack/rack/commit/42af7a7b10c54021e060e52c91a590a5d5f2a48d (opens in a new tab)
- github.com/rack/rack/commit/c7102e91e4a1ee832b006790de31b3d5b207b89e (opens in a new tab)
- github.com/rack/rack/commit/d73bdad9e2ebec7217ecd3e9bbc079f076b0d120 (opens in a new tab)
- github.com/rack/rack (opens in a new tab)
- github.com/rack/rack/releases/tag/v2.2.26 (opens in a new tab)
- github.com/rack/rack/releases/tag/v3.1.24 (opens in a new tab)
- github.com/rack/rack/releases/tag/v3.2.9 (opens in a new tab)