Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-42343 EUVD-2021-0050GHSA-hwqr-f3v9-hwxrGHSA-j8fq-86c5-5v2rPYSEC-2021-387PYSEC-2021-871PYSEC-2021-872

Workers for local Dask clusters mistakenly listened on public interfaces

Published Oct 26, 2021 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 dask.distributed 2021.09.1+ds.1-2 —
Debian 13 dask.distributed 2021.09.1+ds.1-2 —
Debian 12 dask.distributed 2021.09.1+ds.1-2 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS dask.distributed No fix yet —
Ubuntu 18.04 LTS dask.distributed No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-distributed 2022.1.0-1.1 openSUSE-SU-2026:11043-1, openSUSE-SU-2024:13920-1, openSUSE-SU-2024:11766-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-dask 2022.2.0-r0 —
Alpine v3.23 py3-dask 2022.2.0-r0 —
Alpine v3.22 py3-dask 2022.2.0-r0 —
Alpine v3.21 py3-dask 2022.2.0-r0 —
Alpine v3.20 py3-dask 2022.2.0-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-dask 2022.2.0-r0 —
Alpine v3.18 py3-dask 2022.2.0-r0 —
Alpine v3.17 py3-dask 2022.2.0-r0 —
Alpine v3.16 py3-dask 2022.2.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI dask < 2021.10.0 2021.10.0 PYSEC-2021-387
PyPI distributed < 2021.10.0 2021.10.0 GHSA-hwqr-f3v9-hwxr

Advisories 3

References