{"id":"GHSA-8v4j-7jgf-5rg9","aliases":["GHSA-8v4j-7jgf-5rg9","RUSTSEC-2022-0082"],"related":[],"kind":"vulnerability","state":"published","title":"Warp vulnerable to Path Traversal via Improper validation of Windows paths","summary":"Path resolution in `warp::filters::fs::dir` 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 `warp::filters::fs::dir` 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"}],"published":"2022-01-14T12:00:00.000Z","modified":"2023-11-08T04:17:31.672Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.3"}],"ecosystem":"crates.io","package":"warp","purl":"pkg:cargo/warp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.3.3"}],"ecosystem":"crates.io","package":"warp","purl":"pkg:cargo/warp","source":"rustsec"}],"references":[{"url":"https://github.com/seanmonstar/warp/issues/937","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/seanmonstar/warp/pull/997","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/seanmonstar/warp/commit/0074a0a3e98786509259bfe3821d3b3f094257aa","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/seanmonstar/warp","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0082.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/warp","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v4j-7jgf-5rg9","url":"https://github.com/advisories/GHSA-8v4j-7jgf-5rg9","licence":"CC-BY-4.0","modified":"2023-11-08T04:17:31.672Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0082","url":"https://rustsec.org/advisories/RUSTSEC-2022-0082.html","licence":"CC0-1.0","modified":"2023-11-08T04:17:31.672Z"}],"updatedAt":"2026-11-25T22:56:43.122Z"}