{"id":"GHSA-7p7c-pvvx-2vx3","summary":"hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack","details":"Path resolution in `hyper-staticfile` 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","aliases":["RUSTSEC-2022-0069"],"modified":"2023-11-08T04:16:54.984322Z","published":"2022-12-05T22:03:46Z","database_specific":{"github_reviewed_at":"2022-12-05T22:03:46Z","nvd_published_at":null,"cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/stephank/hyper-staticfile/issues/35"},{"type":"WEB","url":"https://github.com/stephank/hyper-staticfile/pull/36"},{"type":"WEB","url":"https://github.com/stephank/hyper-staticfile/commit/1e40e31d64bc6b32e595d24074092dcf84410b2b"},{"type":"PACKAGE","url":"https://github.com/stephank/hyper-staticfile"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2022-0069.html"}],"affected":[{"package":{"name":"hyper-staticfile","ecosystem":"crates.io","purl":"pkg:cargo/hyper-staticfile"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-7p7c-pvvx-2vx3/GHSA-7p7c-pvvx-2vx3.json"}},{"package":{"name":"hyper-staticfile","ecosystem":"crates.io","purl":"pkg:cargo/hyper-staticfile"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.10.0-alpha.1"},{"fixed":"0.10.0-alpha.2"}]}],"versions":["0.10.0-alpha.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-7p7c-pvvx-2vx3/GHSA-7p7c-pvvx-2vx3.json"}}],"schema_version":"1.9.0"}