Rack: `Rack::Directory` lists directories outside the root when `..` follows a symbolic link
영향
| 패키지 | 영향받는 버전 | 수정 버전 |
|---|---|---|
| rubygems:rack | >= 2.2.0, < 2.2.26 | 2.2.26 |
| rubygems:rack | >= 3.0.0, < 3.1.24 | 3.1.24 |
| rubygems:rack | >= 3.2.0, < 3.2.9 | 3.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…
X에서 속보 받기악용·대형 유출·장애를 대응 방법과 함께.
@vulnpulse_app 팔로우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.