PYSEC-2021-387

    Dashboard / Vulnerabilities / PYSEC-2021-387

    PYSEC-2021-387

    Published: 26 Oct 2021Last Modified: 9 Jul 2026

    Summary:

    Details: 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.

    Affected packages

    Package

    Name: dask

    Purl: pkg:pypi/dask

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2021.10.0

    Affected versions

    0.10.0
    0.10.1
    0.10.2

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    PYSEC-2021-387 | CVE-DB