GHSA-3x5x-fw77-g54c: Dgl Remote Code Execution Vulnerability
HIGHGHSA-3x5x-fw77-g54c is a HIGH remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Dgl libraries in the PyPI ecosystem. The issue involves dmlc/dgl vulnerable to remote code execution by pickle deserialization via rpc.recv_request(). Remediation is available in the latest vendor maintenance releases.
GHSA-3x5x-fw77-g54c at a Glance
How to Fix GHSA-3x5x-fw77-g54c
To remediate this vulnerability, upgrade all affected Dgl 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 dgl>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show dgl
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-3x5x-fw77-g54c, inspect your installed packages using pip:
pip show dgl
Analyze the terminal output to locate any version of Dgl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show dgl command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Dgl, 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-3x5x-fw77-g54c Affected Dgl Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dgl
|
PyPI |
≤ 2.4.0
|
|
References
Frequently Asked Questions
What is GHSA-3x5x-fw77-g54c?
Which Dgl versions are affected?
What version fixes GHSA-3x5x-fw77-g54c?
Is dgl affected?
What CWE is associated with GHSA-3x5x-fw77-g54c?
How can I check PyPI dependencies for GHSA-3x5x-fw77-g54c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3x5x-fw77-g54c",
"modified" : "2025-03-05T19:50:09Z",
"published" : "2025-03-05T19:50:09Z",
"aliases" : [ ],
"summary" : "dmlc/dgl Vulnerable to Remote Code Execution by Pickle Deserialization via rpc.recv_request()",
"details" : "### Impact\nDgl implements rpc server (start_server() in rpc_server.py) for supporting the RPC communications among different remote users over networks. It relies on pickle serialize and deserialize to pack and unpack network messages. The is a known risk in pickle deserialization functionality that can be used for remote code execution.\n\n### Patches\nTBD.\n\n### Workarounds\nWhen running DGL distributed training and inference (DistDGL) make sure you do not assign public IPs to any instance in the cluster.\n\n### References\nIssue #7874\n\n### Reported by\nPinji Chen ([cpj24@mails.tsinghua.edu.cn](mailto:cpj24@mails.tsinghua.edu.cn)) from NISL lab (https://netsec.ccert.edu.cn/about) at Tsinghua University",
"severity" : [ {
"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/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "dgl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dmlc/dgl/security/advisories/GHSA-3x5x-fw77-g54c"
}, {
"type" : "WEB",
"url" : "https://github.com/dmlc/dgl/issues/7874"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dmlc/dgl"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-05T19:50:09Z",
"nvd_published_at" : null
}
}