Security mailing lists by PureSourceCode

CVE-2026-142593

MEDIUM 5.3CVSS 3.1

Rack: `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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.