GHSA-7p7c-pvvx-2vx3

Suggest an improvement
Source
https://github.com/advisories/GHSA-7p7c-pvvx-2vx3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-7p7c-pvvx-2vx3/GHSA-7p7c-pvvx-2vx3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7p7c-pvvx-2vx3
Aliases
Published
2022-12-05T22:03:46Z
Modified
2023-11-08T04:16:54.984322Z
Summary
hyper-staticfile's improper validation of Windows paths could lead to directory traversal attack
Details

Path resolution in hyper-staticfile 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": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-12-05T22:03:46Z"
}
References

Affected packages

crates.io / hyper-staticfile

Package

Name
hyper-staticfile
View open source insights on deps.dev
Purl
pkg:cargo/hyper-staticfile

Affected ranges

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

crates.io / hyper-staticfile

Package

Name
hyper-staticfile
View open source insights on deps.dev
Purl
pkg:cargo/hyper-staticfile

Affected ranges

Type
SEMVER
Events
Introduced
0.10.0-alpha.1
Fixed
0.10.0-alpha.2

Affected versions

0.*

0.10.0-alpha.1