CVE-2021-42343
JSON

9.8critical

Workers for local Dask clusters mistakenly listened on public interfaces

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
3.00% (higher than 87% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-hwqr-f3v9-hwxrGHSA-j8fq-86c5-5v2rPYSEC-2021-387PYSEC-2021-871PYSEC-2021-872

Description

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
distributed (PyPI)before 2021.10.0GitHub Advisory Database, PyPA Advisory Database
dask (PyPI)before 2021.10.0GitHub Advisory Database, PyPA Advisory Database
anaconda daskbefore 2021.10.0NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

Versions of distributed earlier than 2021.10.0 had a potential security vulnerability relating to single-machine Dask clusters.

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 AND running on a machine that has these ports exposed could be used by a sophisticated attacker to enable remote code execution. Users running on machines with standard firewalls in place, or using clusters created via cluster objects other than LocalCluster (e.g. dask_kubernetes.KubeCluster) should not be affected. This vulnerability is documented in CVE-2021-42343, and was fixed in version 2021.10.0 (PR #5427).

GitHub Advisory Database

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-hwqr-f3v9-hwxr. This link is maintained to preserve external references.

Original Description

An issue was discovered in Dask (aka python-dask) through 2021.09.1. 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.

NVD (es)

Se ha descubierto un problema en el paquete distribuido Dask antes de la versión 2021.10.0 para Python. Los clústeres Dask de una sola máquina iniciados con dask.distributed.LocalCluster o dask.distributed.Client (que utiliza por defecto LocalCluster) configuraban por error sus respectivos Dask workers para escuchar en interfaces externas (normalmente con un puerto alto seleccionado al azar) en lugar de hacerlo sólo en localhost. Un cluster Dask creado con este método (cuando se ejecuta en una máquina que tiene un puerto aplicable expuesto) podría ser utilizado por un atacante sofisticado para lograr la ejecución remota de código

PyPA Advisory Database

An issue was discovered in Dask (aka python-dask) through 2021.09.1. 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.

PyPA Advisory Database

Withdrawn as duplicate of PYSEC-2021-871. 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.

References

https://docs.dask.org/en/latest/changelog.htmlrelease-notes, vendor-advisory, web
https://github.com/dask/dask/tagsthird-party-advisory, web
https://github.com/dask/distributed/security/advisories/GHSA-hwqr-f3v9-hwxradvisory, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-42343advisory
https://github.com/dask/distributed/pull/5427web
https://github.com/dask/distributed/commit/afce4be8e05fb180e50a9d9e38465f1a82295e1bweb
https://github.com/dask/distributedpackage
https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-871.yamlweb
https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-872.yamlweb
https://github.com/advisories/GHSA-j8fq-86c5-5v2radvisory
https://github.com/pypa/advisory-database/tree/main/vulns/dask/PYSEC-2021-387.yamlweb
https://github.com/advisories/GHSA-hwqr-f3v9-hwxradvisory

Sources

SourceRecordLicence
CVE ListCVE-2021-42343 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-hwqr-f3v9-hwxr changed 2026-07-09CC-BY-4.0
GitHub Advisory DatabaseGHSA-j8fq-86c5-5v2r changed 2026-07-09CC-BY-4.0
NVDCVE-2021-42343 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-387 changed 2026-07-09CC-BY-4.0
PyPA Advisory DatabasePYSEC-2021-871 changed 2026-07-09CC-BY-4.0
PyPA Advisory DatabasePYSEC-2021-872 changed 2026-07-09CC-BY-4.0