# GHSA-qrqq-9c63-xfrg: tower-http's improper validation of Windows paths could lead to directory traversal attack

- 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-21T12:00:00.000Z
- Modified: 2023-11-08T04:22:23.525Z
- Also known as: RUSTSEC-2022-0043

## Description

`tower_http::services::fs::ServeDir` 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.

See [tower-http#204] for more details.

[tower-http#204]: https://github.com/tower-rs/tower-http/pull/204

(As written by GitHub Advisory Database.)

## Affected

- tower-http (crates.io): from 0.2.0 before 0.2.1; before 0.1.3; from 0.0.0-0 before 0.1.3

## References

- <https://github.com/tower-rs/tower-http/pull/204> (web)
- <https://github.com/tower-rs/tower-http> (package)
- <https://rustsec.org/advisories/RUSTSEC-2022-0043.html> (advisory, web)
- <https://crates.io/crates/tower-http> (package)

## Sources

- GitHub Advisory Database: [GHSA-qrqq-9c63-xfrg](https://github.com/advisories/GHSA-qrqq-9c63-xfrg), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0043](https://rustsec.org/advisories/RUSTSEC-2022-0043.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-qrqq-9c63-xfrg · Whole record: https://cve.day/GHSA-qrqq-9c63-xfrg.json · Rebuilt by cve.day 2026-11-25T22:56:43.105Z
