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
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | dask | < 2021.10.0 | 2021.10.0 |
| Python (PyPI) | distributed | < 2021.10.0 | 2021.10.0 |
References
- https://docs.dask.org/en/latest/changelog.html
- https://github.com/dask/dask/tags
- https://github.com/dask/distributed/security/advisories/GHSA-hwqr-f3v9-hwxr
- https://github.com/advisories/GHSA-j8fq-86c5-5v2r
- https://github.com/advisories/GHSA-hwqr-f3v9-hwxr
- https://nvd.nist.gov/vuln/detail/CVE-2021-42343
- https://github.com/dask/distributed/pull/5427
- https://github.com/dask/distributed/commit/afce4be8e05fb180e50a9d9e38465f1a82295e1b
- https://github.com/dask/distributed
- https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-871.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-872.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/dask/PYSEC-2021-387.yaml
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-668- Platform
- Python (PyPI)
- Package
dask, distributed- Disclosed
- 26.10.2021
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2021-387 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2021-872 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-hwqr-f3v9-hwxr - CC BY 4.0
OSV / GitHub Advisory Database - GHSA-j8fq-86c5-5v2r - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2021-871 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: dask
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.