RUSTSEC-2022-0043

Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0043.json
Published
2022-01-21T12:00:00Z
Modified
2022-08-04T22:07:43Z
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.

References

Affected packages

crates.io / tower-http

tower-http

Affected ranges

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

Affected versions

Ecosystem specific

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

Database specific

{
    "informational": null,
    "categories": [
        "file-disclosure"
    ],
    "cvss": null
}