GHSA-8v4j-7jgf-5rg9: Warp vulnerable to Path Traversal via Improper validation of Windows paths
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
1/31/2023
Updated
3/31/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
warp | rust | < 0.3.3 | 0.3.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the sanitize_path
function's incomplete path validation logic in Windows environments. The commit diff shows a specific addition of colon (':') validation in this function when cfg!(windows)
is true. Prior to the patch, the function only checked for backslashes and '..' patterns but didn't account for colons, which are critical for Windows drive letter specification. This allowed URL paths containing segments like 'c:' to bypass directory restrictions and access arbitrary filesystem locations.