{ "schema_version": "1.4.0", "id": "GHSA-7p7c-pvvx-2vx3", "modified": "2022-12-05T22:03:46Z", "published": "2022-12-05T22:03:46Z", "aliases": [], "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.\n\nThis only impacts Windows. Linux and other unix likes are not impacted by this.\n", "severity": [], "affected": [ { "package": { "ecosystem": "crates.io", "name": "hyper-staticfile" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "0.9.2" } ] } ] }, { "package": { "ecosystem": "crates.io", "name": "hyper-staticfile" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0.10.0-alpha.1" }, { "fixed": "0.10.0-alpha.2" } ] } ], "versions": [ "0.10.0-alpha.1" ] } ], "references": [ { "type": "WEB", "url": "https://github.com/stephank/hyper-staticfile/issues/35" }, { "type": "WEB", "url": "https://github.com/stephank/hyper-staticfile/pull/36" }, { "type": "WEB", "url": "https://github.com/stephank/hyper-staticfile/commit/1e40e31d64bc6b32e595d24074092dcf84410b2b" }, { "type": "PACKAGE", "url": "https://github.com/stephank/hyper-staticfile" }, { "type": "WEB", "url": "https://rustsec.org/advisories/RUSTSEC-2022-0069.html" } ], "database_specific": { "cwe_ids": [ "CWE-22" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2022-12-05T22:03:46Z", "nvd_published_at": null } }