CVE-2023-3348 Directory traversal vulnerability in Cloudflare Wrangler

Medium 5.7 Published Updated

An attacker on the same network can access files outside the development directory via the local Pages development server in Cloudflare Wrangler.

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-3348?

CVE-2023-3348 is a medium-severity path traversal vulnerability in Cloudflare Wrangler, published on 3 Aug 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

The Wrangler command line tool  (<[email protected] or <[email protected]) was affected by a directory traversal vulnerability when running a local development server for Pages (wrangler pages dev command). This vulnerability enabled an attacker in the same network as the victim to connect to the local development server and access the victim's files present outside of the directory for the development server.

Weakness: CWE-22

Which versions are affected by CVE-2023-3348?

2 open source packages ship an affected version, including wrangler. It affects 1 product.

PackageAffectedFixed in
wrangler npmAll versions2.20.1
wrangler npmAll versions2.20.1

Products include Cloudflare Wrangler.

How do I fix CVE-2023-3348?

Upgrade wrangler to 2.20.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-3348 being exploited?

There is no known exploitation of CVE-2023-3348 in the wild and no public exploit code.

Sources

Also known as GHSA-8c93-4hch-xgxp.

Is CVE-2023-3348 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free