CVE-2023-3348:
Cloudflare Wrangler directory traversal vulnerability
5.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.43342%
CWE
Published
8/3/2023
Updated
11/8/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
wrangler | npm | < 2.20.1 | 2.20.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from improper path handling in the local development server's asset serving logic. The commit diff shows critical changes in assets.ts
where: 1) directory paths are resolved to absolute paths, and 2) a security check was added to ensure resolved file paths start with the build directory. The vulnerable version lacked these protections, allowing attackers to escape the restricted directory via crafted paths. The findAssetEntryForPath()
function was directly responsible for mapping URLs to filesystem paths without proper containment checks prior to the patch.