Skip to main content
VulnerabilityPublished

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

Affects rackSource GCVE Database

0
Compare
Authoritative record:CVE-2026-142593· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium : upgrade to 2.2.26 when convenient.

Data as of 4 Dec 2026, 00:45 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.3
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 3 Dec 2026.

What to do

Upgrade rack to 2.2.26; rack to 3.1.24; rack to 3.2.9.

Affected software

ProductAffectedFixed in
RubyGemsrackAffected
  • >=2.2.0 <2.2.26
Fixed in
  • 2.2.26
RubyGemsrackAffected
  • >=3.0.0 <3.1.24
Fixed in
  • 3.1.24
RubyGemsrackAffected
  • >=3.2.0 <3.2.9
Fixed in
  • 3.2.9

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: 2.2.26, 3.1.24, or 3.2.9 or later, where Rack::Directory normalizes request paths before filesystem access. 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 request paths containing '..' or encoded equivalents such as '%2E%2E'.

Description

Rack::Directory in affected versions improperly handles symbolic links when a request path contains '..', allowing directory listings outside the intended root directory. This occurs because the path normalization check differs from the actual filesystem access, enabling an attacker to enumerate directory names, sizes, and modification times outside the root. File contents are not disclosed. The issue affects all supported Rack versions since 2.2.0 prior to the fixed versions.

References

Community reviews

Loading reviews…