{"id":"GHSA-qrqq-9c63-xfrg","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.\n\nThis only impacts Windows. Linux and other unix likes are not impacted by this.\n\nSee [tower-http#204] for more details.\n\n[tower-http#204]: https://github.com/tower-rs/tower-http/pull/204\n","aliases":["RUSTSEC-2022-0043"],"modified":"2023-11-08T04:22:23.525783Z","published":"2022-08-11T15:36:42Z","database_specific":{"github_reviewed_at":"2022-08-11T15:36:42Z","nvd_published_at":null,"cwe_ids":[],"severity":"HIGH","github_reviewed":true},"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-2022-0043.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"}]}],"versions":["0.2.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-qrqq-9c63-xfrg/GHSA-qrqq-9c63-xfrg.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/08/GHSA-qrqq-9c63-xfrg/GHSA-qrqq-9c63-xfrg.json"}}],"schema_version":"1.9.0"}