Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1mOG1wLXg0MzMtNXdwZs4AA4Lh
Arbitrary remote code execution within `wrangler dev` Workers sandbox
Impact
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.
Patches
This issue was fixed in [email protected]
and [email protected]
. Whilst wrangler dev
's inspector server listens on local interfaces by default as of [email protected]
, an SSRF vulnerability in miniflare
allowed access from the local network until [email protected]
. [email protected]
and [email protected]
introduced validation for the Origin
/Host
headers.
Workarounds
Unfortunately, Wrangler doesn't provide any configuration for which host that inspector server should listen on. Please upgrade to at least [email protected]
, 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.
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
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mOG1wLXg0MzMtNXdwZs4AA4Lh
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 11 months ago
Updated: 11 months ago
CVSS Score: 9.3
CVSS vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Identifiers: GHSA-f8mp-x433-5wpf, CVE-2023-7080
References:
- https://github.com/cloudflare/workers-sdk/security/advisories/GHSA-f8mp-x433-5wpf
- https://nvd.nist.gov/vuln/detail/CVE-2023-7080
- 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/commit/05b1bbd2f5b8e60268e30c276067c3a3ae1239cf
- https://github.com/cloudflare/workers-sdk/commit/29df8e17545bf3926b6d61678b596be809d40c6d
- https://github.com/cloudflare/workers-sdk/commit/49a469601adaa9eb9e1f2d6de197c1979d5c6c1b
- https://github.com/cloudflare/workers-sdk/commit/63708a94fb7a055bf15fa963f2d598b47b11d3c0
- https://github.com/advisories/GHSA-f8mp-x433-5wpf
Blast Radius: 33.0
Affected Packages
npm:wrangler
Dependent packages: 209Dependent repositories: 3,545
Downloads: 3,281,861 last month
Affected Version Ranges: >= 2.0.0, < 2.20.2, >= 3.0.0, < 3.19.0
Fixed in: 2.20.2, 3.19.0
All affected versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.11, 2.0.12, 2.0.14, 2.0.15, 2.0.16, 2.0.17, 2.0.18, 2.0.19, 2.0.21, 2.0.22, 2.0.23, 2.0.24, 2.0.25, 2.0.26, 2.0.27, 2.0.28, 2.0.29, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.1.11, 2.1.12, 2.1.13, 2.1.14, 2.1.15, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.6.0, 2.6.1, 2.6.2, 2.7.0, 2.7.1, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.11.0, 2.11.1, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.14.0, 2.15.0, 2.15.1, 2.16.0, 2.17.0, 2.18.0, 2.19.0, 2.20.0, 2.20.1, 3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.3.0, 3.4.0, 3.5.0, 3.5.1, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.9.1, 3.10.0, 3.10.1, 3.11.0, 3.12.0, 3.13.0, 3.13.1, 3.13.2, 3.14.0, 3.15.0, 3.16.0, 3.17.0, 3.17.1, 3.18.0
All unaffected versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 2.20.2, 2.21.0, 2.21.1, 2.21.2, 3.19.0, 3.20.0, 3.21.0, 3.22.0, 3.22.1, 3.22.2, 3.22.3, 3.22.4, 3.22.5, 3.23.0, 3.24.0, 3.25.0, 3.26.0, 3.27.0, 3.28.0, 3.28.1, 3.28.2, 3.28.3, 3.28.4, 3.29.0, 3.30.0, 3.30.1, 3.31.0, 3.32.0, 3.33.0, 3.34.0, 3.34.1, 3.34.2, 3.35.0, 3.36.0, 3.37.0, 3.38.0, 3.39.0, 3.40.0, 3.41.0, 3.42.0, 3.43.0, 3.44.0, 3.45.0, 3.46.0, 3.47.0, 3.47.1, 3.48.0, 3.49.0, 3.50.0, 3.51.0, 3.51.2, 3.52.0, 3.53.0, 3.53.1, 3.55.0, 3.56.0, 3.57.0, 3.57.1, 3.57.2, 3.58.0, 3.59.0, 3.60.0, 3.60.1, 3.60.2, 3.60.3, 3.61.0, 3.62.0, 3.63.0, 3.63.1, 3.63.2, 3.64.0, 3.65.0, 3.65.1, 3.66.0, 3.67.0, 3.67.1, 3.68.0, 3.69.0, 3.69.1, 3.70.0, 3.71.0, 3.72.0, 3.72.1, 3.72.2, 3.72.3, 3.73.0, 3.74.0, 3.75.0, 3.76.0, 3.77.0, 3.78.0, 3.78.1, 3.78.2, 3.78.3, 3.78.4, 3.78.5, 3.78.6, 3.78.7, 3.78.8, 3.78.9, 3.78.10, 3.78.11, 3.78.12, 3.79.0, 3.80.0, 3.80.1, 3.80.2, 3.80.3, 3.80.4, 3.80.5, 3.81.0, 3.82.0, 3.83.0, 3.84.0, 3.84.1, 3.85.0, 3.86.0, 3.86.1, 3.87.0, 3.88.0, 3.89.0, 3.90.0, 3.91.0