← 脆弱性・アップデート

警告脆弱性アドバイザリRuby

Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link

影響

パッケージ影響する版修正版
rubygems:rack>= 2.2.0, < 2.2.262.2.26
rubygems:rack>= 3.0.0, < 3.1.243.1.24
rubygems:rack>= 3.2.0, < 3.2.93.2.9

Rack::Directory#get decides whether a request path containing .. stays inside the root by expanding it lexically with File.expand_path, but then joins the original, unnormalized path onto the root and passes it to File.stat and Dir.foreach. The operating system resolves a symbolic link before applying a .. that follows it, so when a directory under the root is a symlink, a request such as /system/../ passes the check while the filesystem lists the parent of the link's target, and /system/../con…

GitHub Advisory Databaseで読む

2026/12/04 08:44、GitHub Advisory Databaseが「Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: Ruby。CVE: CVE-2026-142593。