Read the docs
TI-2022-26592 Aliases GHSA-wwh2-r387-g5rm

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

Priority LOW 38CWE-22Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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

Why it matters now

Fix Fixed tower-http (crates.io): 0.2.1, 0.1.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—tower-http (crates.io)0.2.0 to before 0.2.10.2.1Patch availableGHSA-wwh2-r387-g5rm
—tower-http (crates.io)before 0.1.30.1.3Patch availableGHSA-wwh2-r387-g5rm
  • tower-http (crates.io) Vendor— Affected 0.2.0 to before 0.2.1 Fixed in 0.2.1 Patch available GHSA-wwh2-r387-g5rm
  • tower-http (crates.io) Vendor— Affected before 0.1.3 Fixed in 0.1.3 Patch available GHSA-wwh2-r387-g5rm

Remediation

  • Fix · GHSA-wwh2-r387-g5rm tower-http (crates.io) Fixed in 0.2.1 Advisory →
  • Fix · GHSA-wwh2-r387-g5rm tower-http (crates.io) Fixed in 0.1.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-wwh2-r387-g5rm

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences