CVE-2023-7080
Arbitrary remote code execution within wrangler dev Workers sandbox
Check your servers for CVE-2023-7080
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-7080 affects wrangler, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
The V8 inspector intentionally allows arbitrary code execution within the Workers sandbox for debugging. wrangler dev would previously start an inspector server listening on all network interfaces. This would allow an attacker on the local network to connect to the inspector and run arbitrary code. Additionally, the inspector server did not validate Origin/Host headers, granting an attacker that can trick any user on the local network into opening a malicious website the ability to run code. If wrangler dev --remote was being used, an attacker could access production resources if they were bound to the worker.
This issue was fixed in wrangler@3.19.0 and wrangler@2.20.2. Whilst wrangler dev's inspector server listens on local interfaces by default as of wrangler@3.16.0, an SSRF vulnerability in miniflare https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-fwvg-2739-22v7 (CVE-2023-7078) allowed access from the local network until wrangler@3.18.0. wrangler@3.19.0 and wrangler@2.20.2 introduced validation for the Origin/Host headers.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.93%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 58.8% of all scored CVEs. Scores of 30 Nov 2026.
Weakness
- CWE-269 Improper Privilege Management
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
wrangler
package
wrangler |
affected up to and including 3.0.0 (unaffected from 3.19.0) affected before 3.19.0 (unaffected from 3.19.0) affected up to and including 2.0.0 (unaffected from 2.20.2) affected before 2.20.2 (unaffected from 2.20.2)
Other versions: unaffected
|
Is my server affected?
Find the installed version of wrangler and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i wrangler
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-7080 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-7080RHEL, Rocky, Alma, Fedora
rpm -q wrangler
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-7080Alpine
apk list --installed | grep -i wranglerWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-7080
trivy image --scanners vuln IMAGE | grep CVE-2023-7080
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf github.com
- https://github.com/cloudflare/workers-sdk/issues/4430 github.com
- https://github.com/cloudflare/workers-sdk/pull/4437 github.com
- https://github.com/cloudflare/workers-sdk/pull/4535 github.com
- https://github.com/cloudflare/workers-sdk/pull/4550 github.com
Source: the record CVE-2023-7080 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse