GHSA-6xv5-86q9-7xr8: SecureJoin: on windows, paths outside of the rootfs could be inadvertently produced
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
9/7/2023
Updated
9/7/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/cyphar/filepath-securejoin | go | < 0.2.4 | 0.2.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of Windows volume names in path joining logic. The original implementation in SecureJoinVFS did not strip volume names from 'unsafePath' (via filepath.VolumeName), enabling scenarios where a malicious path like 'D:\malicious' combined with a rootfs 'C:\safe' could resolve outside the rootfs. The patch explicitly adds volume name stripping, confirming this was the vulnerable code path.