CVE-2021-42343
CRITICAL 9.8CVSS 3.1Workers for local Dask clusters mistakenly listened on public interfaces
An issue was discovered in the Dask distributed package before 2021.10.0 for Python. Single machine Dask clusters started with dask.distributed.LocalCluster or dask.distributed.Client (which defaults to using LocalCluster) would mistakenly configure their respective Dask workers to listen on external interfaces (typically with a randomly selected high port) rather than only on localhost. A Dask cluster created using this method (when running on a machine that has an applicable port exposed) could be used by a sophisticated attacker to achieve remote code execution.
- Published
- 26 Oct 2021
- Last modified
- 9 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-668
- Also known as
- GHSA-hwqr-f3v9-hwxrGHSA-j8fq-86c5-5v2rPYSEC-2021-387PYSEC-2021-871PYSEC-2021-872
- Sources
- NVDJSONOSV GHSA-hwqr-f3v9-hwxrJSONOSV GHSA-j8fq-86c5-5v2rJSONOSV PYSEC-2021-387JSONOSV PYSEC-2021-871JSONOSV PYSEC-2021-872JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anaconda | daskcpe:2.3:a:anaconda:dask:*:*:*:*:*:python:*:* |
< 2021.10.0 | 2021.10.0 |
| OSV | PyPI | distributed | < 2021.10.0 | 2021.10.0 |
| OSV | PyPI | dask | < 2021.10.0 | 2021.10.0 |
References
- https://docs.dask.org/en/latest/changelog.html · Release Notes, Vendor Advisory, WEB
- https://github.com/dask/dask/tags · Third Party Advisory, WEB
- https://github.com/dask/distributed/security/advisories/GHSA-hwqr-f3v9-hwxr · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2021-42343 · ADVISORY
- https://github.com/dask/distributed/pull/5427 · WEB
- https://github.com/dask/distributed/commit/afce4be8e05fb180e50a9d9e38465f1a82295e1b · WEB
- https://github.com/dask/distributed · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-871.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-872.yaml · WEB
- https://github.com/advisories/GHSA-j8fq-86c5-5v2r · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/dask/PYSEC-2021-387.yaml · WEB
- https://github.com/advisories/GHSA-hwqr-f3v9-hwxr · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 26 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Oct 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Oct 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Oct 2021)