GHSA-3x5x-fw77-g54c: Dgl Remote Code Execution Vulnerability

HIGH
CWE-502
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-3x5x-fw77-g54c
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Dgl
Package Ecosystem PyPI
Published Date
Last Updated

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.

dgl fixed: Latest secure release
pip install dgl>=Latest secure release
Verify Direct and Transitive Dependencies

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

### Impact Dgl 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. ### Patches TBD. ### Workarounds When running DGL distributed training and inference (DistDGL) make sure you do not assign public IPs to any instance in the cluster. ### References Issue #7874 ### Reported by Pinji Chen ([cpj24@mails.tsinghua.edu.cn](mailto:cpj24@mails.tsinghua.edu.cn)) from NISL lab (https://netsec.ccert.edu.cn/about) at Tsinghua University

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?
GHSA-3x5x-fw77-g54c is a security vulnerability in Dgl involving dmlc/dgl Vulnerable to Remote Code Execution by Pickle Deserialization via rpc.recv_request() under CWE-502: Deserialization of Untrusted Data.
Which Dgl versions are affected?
Affected versions include releases prior to current release patches across affected packages: dgl.
What version fixes GHSA-3x5x-fw77-g54c?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is dgl affected?
Yes, dgl is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-3x5x-fw77-g54c?
GHSA-3x5x-fw77-g54c is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for GHSA-3x5x-fw77-g54c?
Run the dependency tree command: 'pip show dgl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}