CVE-2023-7079 Arbitrary remote file read in Wrangler dev server
An attacker can read arbitrary files on a developer's machine by sending crafted requests to the Wrangler dev server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-7079?
CVE-2023-7079 is a medium-severity path traversal vulnerability in Cloudflare wrangler, published on 29 Dec 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Sending specially crafted HTTP requests and inspector messages to Wrangler's dev server could result in any file on the user's computer being accessible over the local network. An attacker that could trick any user on the local network into opening a malicious website could also read any file.
Weakness: CWE-287
Which versions are affected by CVE-2023-7079?
2 open source packages ship an affected version, including wrangler. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
wrangler npm | From 3.9.0 | 3.19.0 |
wrangler npm | From 3.9.0 | 3.19.0 |
Products include Cloudflare Wrangler.
How do I fix CVE-2023-7079?
Upgrade wrangler to 3.19.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-7079 being exploited?
There is no known exploitation of CVE-2023-7079 in the wild and no public exploit code.
Other vulnerabilities in Cloudflare wrangler
Sources
Also known as GHSA-cfph-4qqh-w828.