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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22",
"CWE-59"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142593.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.26"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.1.24"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "3.2.0"
},
{
"fixed": "3.2.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "42af7a7b10c54021e060e52c91a590a5d5f2a48d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "c7102e91e4a1ee832b006790de31b3d5b207b89e"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "d73bdad9e2ebec7217ecd3e9bbc079f076b0d120"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v2.2.26",
"range": [
{
"fixed": "320778d0cdd17d8791d986626e2d09084d32c84d"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v3.1.24",
"range": [
{
"fixed": "f1ebc3d8c3eea89908b931db76b131fea9bda52b"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v3.2.9",
"range": [
{
"fixed": "52941a02842fd956e3c5532147116354a0240149"
}
],
"source": "REFERENCES_TAG"
}
]
}