GHSA-qrqq-9c63-xfrg

Suggest an improvement
Source
https://github.com/advisories/GHSA-qrqq-9c63-xfrg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-qrqq-9c63-xfrg/GHSA-qrqq-9c63-xfrg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qrqq-9c63-xfrg
Aliases
Published
2022-08-11T15:36:42Z
Modified
2023-11-08T04:22:23Z
Summary
tower-http's 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
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-08-11T15:36:42Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
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.2.0
Fixed
0.2.1

Affected versions

0.*
0.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-qrqq-9c63-xfrg/GHSA-qrqq-9c63-xfrg.json"

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 Unknown introduced version / All previous versions are affected
Fixed
0.1.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-qrqq-9c63-xfrg/GHSA-qrqq-9c63-xfrg.json"