# GHSA-8v4j-7jgf-5rg9: Warp vulnerable to Path Traversal via Improper validation of Windows paths

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-01-14T12:00:00.000Z
- Modified: 2023-11-08T04:17:31.672Z
- Also known as: RUSTSEC-2022-0082
- Weaknesses: CWE-22

## 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.

This only impacts Windows. Linux and other unix likes are not impacted by this.

(As written by GitHub Advisory Database.)

## Affected

- warp (crates.io): before 0.3.3; from 0.0.0-0 before 0.3.3

## References

- <https://github.com/seanmonstar/warp/issues/937> (report, web)
- <https://github.com/seanmonstar/warp/pull/997> (web)
- <https://github.com/seanmonstar/warp/commit/0074a0a3e98786509259bfe3821d3b3f094257aa> (web)
- <https://github.com/seanmonstar/warp> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0082.html> (advisory, web)
- <https://crates.io/crates/warp> (package)

## Sources

- GitHub Advisory Database: [GHSA-8v4j-7jgf-5rg9](https://github.com/advisories/GHSA-8v4j-7jgf-5rg9), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0082](https://rustsec.org/advisories/RUSTSEC-2022-0082.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-8v4j-7jgf-5rg9 · Whole record: https://cve.day/GHSA-8v4j-7jgf-5rg9.json · Rebuilt by cve.day 2026-11-25T22:56:43.122Z
