# tower-http's improper validation of Windows paths could lead to directory traversal attack

Source: https://junglewise.ai/threats/tower-http-s-improper-validation-of-windows-paths-could-lead-to-5875d768  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-11  
License: CC BY 4.0 with a link back

Severity: info · Published 2022-08-11

tower-http's improper validation of Windows paths could lead to directory traversal attack

Technologies: [tower-http (crates.io)](https://junglewise.ai/threats/technologies/tower-http). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 11 August 2022.

**Which products and versions are affected?** tower-http (crates.io) SEMVER:introduced=0.2.0,fixed=0.2.1.

**Is there a fix for This vulnerability?** Yes. tower-http (crates.io): upgrade to 0.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run tower-http (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- tower-http (crates.io): upgrade to 0.2.1 or later

  ```sh
  cargo update -p tower-http
  ```


## Affected products

- tower-http (crates.io) SEMVER:introduced=0.2.0,fixed=0.2.1

## Related threats

- [tower-http's improper validation of Windows paths could lead to directory traversal attack](https://junglewise.ai/threats/tower-http-s-improper-validation-of-windows-paths-could-lead-to-d02410b4)
- [RUSTSEC-2022-0043 - Improper validation of Windows paths could lead to directory traversal attack](https://junglewise.ai/threats/rustsec-2022-0043-improper-validation-of-windows-paths-could-lead-to-89ef3b69)
- [RUSTSEC-2021-0135 - Improper validation of Windows paths could lead to directory traversal attack](https://junglewise.ai/threats/rustsec-2021-0135-improper-validation-of-windows-paths-could-lead-to-8ce35db1)
