{"id":"GHSA-7p7c-pvvx-2vx3","aliases":["GHSA-7p7c-pvvx-2vx3","RUSTSEC-2022-0069"],"related":[],"kind":"vulnerability","state":"published","title":"hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Path resolution in `hyper-staticfile` didn't correctly validate Windows paths\nmeaning paths like `/foo/bar/c:/windows/web/screen/img101.png` would be allowed\nand respond with the contents of `c:/windows/web/screen/img101.png`. Thus users\ncould potentially read files anywhere on the filesystem.\n\nThis only impacts Windows. Linux and other unix likes are not impacted by this.","format":"markdown","source":"rustsec"}],"published":"2022-11-30T12:00:00.000Z","modified":"2023-11-08T04:16:54.984Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.2"}],"ecosystem":"crates.io","package":"hyper-staticfile","purl":"pkg:cargo/hyper-staticfile","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.10.0-alpha.1","status":"affected","fixed":"0.10.0-alpha.2"}],"ecosystem":"crates.io","package":"hyper-staticfile","purl":"pkg:cargo/hyper-staticfile","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.9.2"},{"type":"semver","introduced":"0.10.0-0","status":"affected","fixed":"0.10.0-alpha.2"}],"ecosystem":"crates.io","package":"hyper-staticfile","purl":"pkg:cargo/hyper-staticfile","source":"rustsec"}],"references":[{"url":"https://github.com/stephank/hyper-staticfile/issues/35","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/stephank/hyper-staticfile/pull/36","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/stephank/hyper-staticfile/commit/1e40e31d64bc6b32e595d24074092dcf84410b2b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/stephank/hyper-staticfile","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0069.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/hyper-staticfile","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7p7c-pvvx-2vx3","url":"https://github.com/advisories/GHSA-7p7c-pvvx-2vx3","licence":"CC-BY-4.0","modified":"2023-11-08T04:16:54.984Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0069","url":"https://rustsec.org/advisories/RUSTSEC-2022-0069.html","licence":"CC0-1.0","modified":"2023-11-08T04:16:54.984Z"}],"updatedAt":"2026-11-25T22:56:43.115Z"}