GHSA-qrqq-9c63-xfrg – tower-http
Package
Manager: cargo
Name: tower-http
Vulnerable Version: =0.2.0 || >=0.2.0 <0.2.1 || >=0 <0.1.3
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
tower-http's improper validation of Windows paths could lead to directory traversal attack `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
Metadata
Created: 2022-08-11T15:36:42Z
Modified: 2022-08-11T15:36:42Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-qrqq-9c63-xfrg/GHSA-qrqq-9c63-xfrg.json
CWE IDs: []
Alternative ID: N/A
Finding: F063
Auto approve: 1