GHSA-wwh2-r387-g5rm
JSON

medium

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

Severity
medium rating by GitHub
Published
Last changed

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.

Affected

Product or packageVersionsReported by
tower-http (crates.io)from 0.2.0 before 0.2.1, before 0.1.3GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-wwh2-r387-g5rm changed 2023-06-13CC-BY-4.0