GHSA-8v4j-7jgf-5rg9

Suggest an improvement
Source
https://github.com/advisories/GHSA-8v4j-7jgf-5rg9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-8v4j-7jgf-5rg9/GHSA-8v4j-7jgf-5rg9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8v4j-7jgf-5rg9
Aliases
Published
2023-01-31T23:33:47Z
Modified
2023-11-08T04:17:31.672424Z
Summary
Warp vulnerable to Path Traversal via Improper validation of Windows paths
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-01-31T23:33:47Z"
}
References

Affected packages

crates.io / warp

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.3.3