Read the docs
TI-2022-26615 Aliases GHSA-qrqq-9c63-xfrg

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

Priority LOW 38Published · 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. See [tower-http#204] for more details. [tower-http#204]: https://github.com/tower-rs/tower-http/pull/204

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-qrqq-9c63-xfrg
—tower-http (crates.io)before 0.1.30.1.3Patch availableGHSA-qrqq-9c63-xfrg
  • tower-http (crates.io) Vendor— Affected 0.2.0 to before 0.2.1 Fixed in 0.2.1 Patch available GHSA-qrqq-9c63-xfrg
  • tower-http (crates.io) Vendor— Affected before 0.1.3 Fixed in 0.1.3 Patch available GHSA-qrqq-9c63-xfrg

Remediation

  • Fix · GHSA-qrqq-9c63-xfrg tower-http (crates.io) Fixed in 0.2.1 Advisory →
  • Fix · GHSA-qrqq-9c63-xfrg tower-http (crates.io) Fixed in 0.1.3 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-qrqq-9c63-xfrg

References

Sources

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