PYSEC-2021-871

    Dashboard / Vulnerabilities / PYSEC-2021-871

    PYSEC-2021-871

    Published: 26 Oct 2021Last Modified: 9 Jul 2026

    Summary:

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

    Package

    Name: distributed

    Purl: pkg:pypi/distributed

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -2021.10.0

    Affected versions

    1.0.0
    1.0.1
    1.0.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-871 | CVE-DB