{"id":"GHSA-wwh2-r387-g5rm","summary":"tower-http's improper validation of Windows paths could lead to directory traversal attack","details":"`tower_http::services::fs::ServeDir` didn't correctly validate Windows paths meaning paths like `/foo/bar/c:/windows/web/screen/img101.png` would be allowed and respond with the contents of `c:/windows/web/screen/img101.png`. Thus users could potentially read files anywhere on the filesystem. This only impacts Windows. Linux and other unix likes are not impacted by this.","modified":"2023-06-13T22:06:25Z","published":"2022-06-17T00:26:05Z","database_specific":{"cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-06-17T00:26:05Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/tower-rs/tower-http/pull/204"},{"type":"PACKAGE","url":"https://github.com/tower-rs/tower-http"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0135.html"}],"affected":[{"package":{"name":"tower-http","ecosystem":"crates.io","purl":"pkg:cargo/tower-http"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.0"},{"fixed":"0.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-wwh2-r387-g5rm/GHSA-wwh2-r387-g5rm.json"}},{"package":{"name":"tower-http","ecosystem":"crates.io","purl":"pkg:cargo/tower-http"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-wwh2-r387-g5rm/GHSA-wwh2-r387-g5rm.json"}}],"schema_version":"1.9.0"}