Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2023-7080

Summary
Assigner-cloudflare
Assigner Org ID-a22f1246-ba21-4bb4-a601-ad51614c1513
Published At-29 Dec, 2023 | 11:58
Updated At-02 Aug, 2024 | 08:50
Rejected At-
Credits

Arbitrary remote code execution within wrangler dev Workers sandbox

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:cloudflare
Assigner Org ID:a22f1246-ba21-4bb4-a601-ad51614c1513
Published At:29 Dec, 2023 | 11:58
Updated At:02 Aug, 2024 | 08:50
Rejected At:
▼CVE Numbering Authority (CNA)
Arbitrary remote code execution within wrangler dev Workers sandbox

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.

Affected Products
Vendor
Cloudflare, Inc.Cloudflare
Product
wrangler
Package Name
wrangler
Repo
https://github.com/cloudflare/workers-sdk
Platforms
  • Windows
  • MacOS
  • Linux
Default Status
unaffected
Versions
Affected
  • From 0 through 3.0.0 (patch)
    • -> unaffectedfrom3.19.0
  • From 0 before 3.19.0 (patch)
    • -> unaffectedfrom3.19.0
  • From 0 through 2.0.0 (patch)
    • -> unaffectedfrom2.20.2
  • From 0 before 2.20.2 (patch)
    • -> unaffectedfrom2.20.2
Problem Types
TypeCWE IDDescription
CWECWE-269CWE-269 Improper Privilege Management
Type: CWE
CWE ID: CWE-269
Description: CWE-269 Improper Privilege Management
Metrics
VersionBase scoreBase severityVector
3.18.5HIGH
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Version: 3.1
Base score: 8.5
Base severity: HIGH
Vector:
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
CAPEC-549CAPEC-549 Local Execution of Code
CAPEC ID: CAPEC-549
Description: CAPEC-549 Local Execution of Code
Solutions

Configurations

Workarounds

Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on. Please upgrade to at least wrangler@3.16.0, and configure Wrangler to listen on local interfaces instead with wrangler dev --ip 127.0.0.1 to prevent SSRF. This removes the local network as an attack vector, but does not prevent an attack from visiting a malicious website.

Exploits

Credits

reporter
Peter Wu (Lekensteyn)
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
N/A
https://github.com/cloudflare/workers-sdk/issues/4430
N/A
https://github.com/cloudflare/workers-sdk/pull/4437
N/A
https://github.com/cloudflare/workers-sdk/pull/4535
N/A
https://github.com/cloudflare/workers-sdk/pull/4550
N/A
Hyperlink: https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
Resource: N/A
Hyperlink: https://github.com/cloudflare/workers-sdk/issues/4430
Resource: N/A
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4437
Resource: N/A
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4535
Resource: N/A
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4550
Resource: N/A
▼Authorized Data Publishers (ADP)
CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
x_transferred
https://github.com/cloudflare/workers-sdk/issues/4430
x_transferred
https://github.com/cloudflare/workers-sdk/pull/4437
x_transferred
https://github.com/cloudflare/workers-sdk/pull/4535
x_transferred
https://github.com/cloudflare/workers-sdk/pull/4550
x_transferred
Hyperlink: https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
Resource:
x_transferred
Hyperlink: https://github.com/cloudflare/workers-sdk/issues/4430
Resource:
x_transferred
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4437
Resource:
x_transferred
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4535
Resource:
x_transferred
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4550
Resource:
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:cna@cloudflare.com
Published At:29 Dec, 2023 | 12:15
Updated At:05 Jan, 2024 | 18:09

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.18.0HIGH
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Secondary3.18.5HIGH
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Type: Primary
Version: 3.1
Base score: 8.0
Base severity: HIGH
Vector:
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 8.5
Base severity: HIGH
Vector:
CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
CPE Matches

Cloudflare, Inc.
cloudflare
>>wrangler>>Versions from 2.0.0(inclusive) to 2.20.2(exclusive)
cpe:2.3:a:cloudflare:wrangler:*:*:*:*:*:node.js:*:*
Cloudflare, Inc.
cloudflare
>>wrangler>>Versions from 3.0.0(inclusive) to 3.19.0(exclusive)
cpe:2.3:a:cloudflare:wrangler:*:*:*:*:*:node.js:*:*
Weaknesses
CWE IDTypeSource
NVD-CWE-noinfoPrimarynvd@nist.gov
CWE-269Secondarycna@cloudflare.com
CWE ID: NVD-CWE-noinfo
Type: Primary
Source: nvd@nist.gov
CWE ID: CWE-269
Type: Secondary
Source: cna@cloudflare.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/cloudflare/workers-sdk/issues/4430cna@cloudflare.com
Issue Tracking
Patch
https://github.com/cloudflare/workers-sdk/pull/4437cna@cloudflare.com
Patch
https://github.com/cloudflare/workers-sdk/pull/4535cna@cloudflare.com
Patch
https://github.com/cloudflare/workers-sdk/pull/4550cna@cloudflare.com
Patch
https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpfcna@cloudflare.com
Mitigation
Patch
Third Party Advisory
Hyperlink: https://github.com/cloudflare/workers-sdk/issues/4430
Source: cna@cloudflare.com
Resource:
Issue Tracking
Patch
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4437
Source: cna@cloudflare.com
Resource:
Patch
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4535
Source: cna@cloudflare.com
Resource:
Patch
Hyperlink: https://github.com/cloudflare/workers-sdk/pull/4550
Source: cna@cloudflare.com
Resource:
Patch
Hyperlink: https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
Source: cna@cloudflare.com
Resource:
Mitigation
Patch
Third Party Advisory

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found