GHSA-j8fq-86c5-5v2r: Duplicate Advisory Remote Code Execution Vulnerability
CRITICALGHSA-j8fq-86c5-5v2r is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Duplicate Advisory libraries in the PyPI ecosystem. The issue involves remote code execution in dask. Remediation is available by upgrading affected packages to version 2021.10.0.
GHSA-j8fq-86c5-5v2r at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix GHSA-j8fq-86c5-5v2r
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install dask>=2021.10.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show dask
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-j8fq-86c5-5v2r, inspect your installed packages using pip:
pip show dask
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2021.10.0), your application is affected.
Note: The pip show dask command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-j8fq-86c5-5v2r Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dask
|
PyPI |
< 2021.10.0
|
2021.10.0
|
References
Frequently Asked Questions
What is GHSA-j8fq-86c5-5v2r?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-j8fq-86c5-5v2r?
Is dask affected?
What is the CVSS score of GHSA-j8fq-86c5-5v2r?
What CWE is associated with GHSA-j8fq-86c5-5v2r?
How can I check PyPI dependencies for GHSA-j8fq-86c5-5v2r?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j8fq-86c5-5v2r",
"modified" : "2026-02-03T17:37:28Z",
"published" : "2021-10-27T18:53:48Z",
"withdrawn" : "2026-02-03T17:37:27Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Remote code execution in dask",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-hwqr-f3v9-hwxr. This link is maintained to preserve external references.\n\n## Original Description\nAn 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.",
"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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "dask"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2021.10.0"
} ]
} ]
} ],
"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" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-j8fq-86c5-5v2r"
}, {
"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/dask/PYSEC-2021-387.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-27T18:16:11Z",
"nvd_published_at" : "2021-10-26T11:15:00Z"
}
}