{"id":"GHSA-hwqr-f3v9-hwxr","summary":"Workers for local Dask clusters mistakenly listened on public interfaces","details":"Versions of `distributed` earlier than `2021.10.0` had a potential security vulnerability relating to single-machine Dask clusters.\n\nClusters 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).","aliases":["CVE-2021-42343","GHSA-j8fq-86c5-5v2r","PYSEC-2021-387","PYSEC-2021-871"],"modified":"2026-07-09T16:56:37.896815557Z","published":"2022-07-15T21:56:08Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-07-15T21:56:08Z","nvd_published_at":null,"cwe_ids":["CWE-668"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://github.com/dask/distributed/security/advisories/GHSA-hwqr-f3v9-hwxr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42343"},{"type":"WEB","url":"https://github.com/dask/distributed/pull/5427"},{"type":"WEB","url":"https://github.com/dask/distributed/commit/afce4be8e05fb180e50a9d9e38465f1a82295e1b"},{"type":"WEB","url":"https://docs.dask.org/en/latest/changelog.html"},{"type":"WEB","url":"https://github.com/dask/dask/tags"},{"type":"PACKAGE","url":"https://github.com/dask/distributed"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-871.yaml"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/distributed/PYSEC-2021-872.yaml"}],"affected":[{"package":{"name":"distributed","ecosystem":"PyPI","purl":"pkg:pypi/distributed"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2021.10.0"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.11.1","1.11.2","1.11.3","1.12.0","1.12.1","1.12.2","1.13.0","1.13.1","1.13.2","1.13.3","1.14.0","1.14.1","1.14.3","1.15.0","1.15.0rc1","1.15.1","1.15.2","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.17.1","1.18.0","1.18.1","1.18.2","1.18.3","1.19.0","1.19.1","1.19.2","1.19.3","1.2.0","1.2.1","1.2.2","1.2.3","1.20.0","1.20.1","1.20.2","1.21.0","1.21.1","1.21.2","1.21.3","1.21.4","1.21.5","1.21.6","1.21.7","1.21.8","1.22.0","1.22.1","1.23.0","1.23.1","1.23.2","1.23.3","1.24.0","1.24.1","1.24.2","1.25.0","1.25.1","1.25.2","1.25.3","1.26.0","1.26.1","1.27.0","1.27.1","1.28.0","1.28.1","1.3.0","1.3.1","1.3.2","1.3.3","1.4.0","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.9.0","1.9.1","1.9.2","1.9.3","1.9.4","1.9.5","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.13.0","2.14.0","2.15.0","2.15.1","2.15.2","2.16.0","2.17.0","2.18.0","2.19.0","2.2.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.25.0","2.26.0","2.27.0","2.28.0","2.29.0","2.3.0","2.3.1","2.3.2","2.30.0","2.30.1","2.4.0","2.5.0","2.5.1","2.5.2","2.6.0","2.7.0","2.8.0","2.8.1","2.9.0","2.9.1","2.9.2","2.9.3","2020.12.0","2021.1.0","2021.1.1","2021.2.0","2021.3.0","2021.3.1","2021.4.0","2021.4.1","2021.5.0","2021.5.1","2021.6.0","2021.6.1","2021.6.2","2021.7.0","2021.7.1","2021.7.2","2021.8.0","2021.8.1","2021.9.0","2021.9.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-hwqr-f3v9-hwxr/GHSA-hwqr-f3v9-hwxr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}