Vulnerability · Published Oct 26, 2021 · Assigned by mitre
CVE-2021-42343
Critical 9.8
In plain English
A critical-severity security flaw in the py3-dask package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.0% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-dask | 2022.2.0-r0 | ALPINE-CVE-2021-42343 |
| Alpine:v3.21 | py3-dask | 2022.2.0-r0 | ALPINE-CVE-2021-42343 |
| Alpine:v3.22 | py3-dask | 2022.2.0-r0 | ALPINE-CVE-2021-42343 |
| Alpine:v3.23 | py3-dask | 2022.2.0-r0 | ALPINE-CVE-2021-42343 |
| Alpine:v3.24 | py3-dask | 2022.2.0-r0 | ALPINE-CVE-2021-42343 |
| Debian:12 | dask.distributed | 2021.09.1+ds.1-2 | DEBIAN-CVE-2021-42343 |
| Debian:13 | dask.distributed | 2021.09.1+ds.1-2 | DEBIAN-CVE-2021-42343 |
| Debian:14 | dask.distributed | 2021.09.1+ds.1-2 | DEBIAN-CVE-2021-42343 |
| PyPI | dask | 2021.10.0 | PYSEC-2021-387 |
| PyPI | dask | 2021.10.0 | GHSA-j8fq-86c5-5v2r |
| PyPI | distributed | 2021.10.0 | PYSEC-2021-871 |
| PyPI | distributed | 2021.10.0 | PYSEC-2021-872 |
| PyPI | distributed | 2021.10.0 | GHSA-hwqr-f3v9-hwxr |
Affected products (as reported)
References
- https://docs.dask.org/en/latest/changelog.html x_refsource_MISC
- https://github.com/dask/dask/tags x_refsource_MISC
- https://github.com/dask/distributed/security/advisories/GHSA-hwqr-f3v9-hwxr x_refsource_CONFIRM