GHSA-8v4j-7jgf-5rg9 json
Warp vulnerable to Path Traversal via Improper validation of Windows paths
published 4y ago modified 3y ago also RUSTSEC-2022-0082
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
Path resolution in `warp::filters::fs::dir` 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.
Patch / fix
- crates.io warp 0.3.3
- github.com/seanmonstar/warp@0074a0a commit
- github.com/seanmonstar/warp#997 pull request
Is GHSA-8v4j-7jgf-5rg9 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | warp | <0.3.3 >=0.0.0-0, <0.3.3 |
0.3.3 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/seanmonstar/warp/pull/997
web
-
github.com
/seanmonstar/warp/commit/0074a0a3e98786509259bfe3821d3b3f094257aa
web
-
github.com
/seanmonstar/warp/issues/937
web, report
-
github.com
/seanmonstar/warp
package
-
rustsec.org
/advisories/RUSTSEC-2022-0082.html
web, advisory
-
crates.io
/crates/warp
package
Sources
- GitHub Advisory GHSA-8v4j-7jgf-5rg9
- OSV RUSTSEC-2022-0082
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.