RUSTSEC-2021-0135

Source
https://rustsec.org/advisories/RUSTSEC-2021-0135
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0135.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0135
Withdrawn
2022-08-14T12:00:00Z
Published
2021-01-21T12:00:00Z
Modified
2023-06-13T13:10:24Z
Summary
Improper validation of Windows paths could lead to directory traversal attack
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / tower-http

Package

Name
tower-http
View open source insights on deps.dev
Purl
pkg:cargo/tower-http

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.1.3
Introduced
0.2.0
Fixed
0.2.1

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": [
            "windows"
        ]
    }
}

Database specific

categories
[
    "file-disclosure"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0135.json"