{"id":"GHSA-8v4j-7jgf-5rg9","aliases":["RUSTSEC-2022-0082"],"status":"published","title":"Warp vulnerable to Path Traversal via Improper validation of Windows paths","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2022-01-14T12:00:00Z","modified":"2023-11-08T04:17:31Z","fixes":[{"ecosystem":"crates.io","package":"warp","fixed_in":["0.3.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"warp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"warp","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"warp","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.3.3"}]}]}],"references":[{"url":"https://github.com/seanmonstar/warp/issues/937","tags":["web","report"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0082.html","tags":["web","advisory"]},{"url":"https://github.com/seanmonstar/warp/pull/997","tags":["web"]},{"url":"https://github.com/seanmonstar/warp/commit/0074a0a3e98786509259bfe3821d3b3f094257aa","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8v4j-7jgf-5rg9"},{"url":"https://github.com/seanmonstar/warp","tags":["package"]},{"url":"https://crates.io/crates/warp","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-8v4j-7jgf-5rg9","title":"Warp vulnerable to Path Traversal via Improper validation of Windows paths","description":"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.\n","status":"published","published":"2023-01-31T23:33:47Z","modified":"2023-03-31T00:06:11Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:36:48.905887Z"}],"osv":[{"id":"GHSA-8v4j-7jgf-5rg9","title":"Warp vulnerable to Path Traversal via Improper validation of Windows paths","description":"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.\n","status":"published","published":"2023-01-31T23:33:47Z","modified":"2023-11-08T04:17:31.672424Z","cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:42.78452Z"},{"id":"RUSTSEC-2022-0082","title":"Improper validation of Windows paths could lead to directory traversal attack","description":"Path resolution in `warp::filters::fs::dir` 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.","status":"published","published":"2022-01-14T12:00:00Z","modified":"2023-11-08T04:17:31.672424Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
