CVE-2023-7080
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.
Weakness
- CWE-269: Improper Privilege Management
Timeline
- 2023-12-29Published by the CNA11:58 UTC
- 2024-01-03GitHub advisory published (GHSA-f8mp-x433-5wpf)5 days after publication
Exploit and advisory records
GitHub advisory GHSA-f8mp-x433-5wpf, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm wrangler | from 2.0.0 before 2.20.2 | 2.20.2 |
| npm wrangler | from 3.0.0 before 3.19.0 | 3.19.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| cloudflare wrangler | from 2.0.0 before 2.20.2fixed in 2.20.2from 3.0.0 before 3.19.0fixed in 3.19.0 | 2.20.23.19.0 |
References
- https://github.com/cloudflare/workers-sdk/issues/4430
- https://github.com/cloudflare/workers-sdk/pull/4437
- https://github.com/cloudflare/workers-sdk/pull/4535
- https://github.com/cloudflare/workers-sdk/pull/4550
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-7080'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-7080'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-7080'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-7080'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).