CVE-2026-138444

CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load

Published Nov 29, 2026 CVSS 4.0 · 8.4 High EPSS < 1% KEV · Not listed
Description
CHGNet through 0.4.2 contains an insecure deserialization vulnerability that allows attackers to execute code because CHGNet.from_file() calls torch.load() with weights_only=False. Attackers can supply a crafted .pth.tar model file containing a pickle __reduce__ gadget to execute code with the privileges of the user loading it.

Analysis

AI-generated

Technical impact

A flaw in CHGNet allows an attacker to supply a specially crafted model file that triggers Python’s pickle deserialization via torch.load() with weights_only=False. The vulnerability stems from the __reduce__ gadget in the pickle payload and can cause arbitrary code execution with the privileges of the user loading the file, making it a high‑impact insecure deserialization risk (CWE‑502).

Affected Systems

The affected product is CHGNet by CederGroupHub, specifically all releases up to and including version 0.4.2. Later releases are not known to contain the issue.

Risk and Exploitability

The CVSS score is 8.4 and the EPSS score is not available, so the exact exploitation probability is uncertain. The vulnerability can be leveraged locally whenever a user loads a malicious model file; indirect exposure may occur if the application accepts files over a network or from an untrusted source. The vulnerability is not listed in CISA KEV, suggesting no known active exploitation yet. The high severity and code‑execution potential make it a critical risk for environments that trust model files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade CHGNet to the latest release where the deserialization fix is applied, such as version 0.4.3 or newer.
  • Never load .pth.tar files from untrusted or unknown sources; validate or quarantine them before deserialization.
  • If an upgrade cannot be performed immediately, isolate the model loading process in a restricted environment or run the loading code with the least‑privilege account required.

Generated by OpenCVE AI on November 30, 2026 at 01:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Cedergrouphub
Cedergrouphub chgnet
Vendors & Products Cedergrouphub
Cedergrouphub chgnet
Type Values Removed Values Added
Description CHGNet through 0.4.2 contains an insecure deserialization vulnerability that allows attackers to execute code because CHGNet.from_file() calls torch.load() with weights_only=False. Attackers can supply a crafted .pth.tar model file containing a pickle __reduce__ gadget to execute code with the privileges of the user loading it.
Title CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 30, 2026, 8:14 PM
Reserved
Nov 29, 2026, 9:11 PM
Status
Received
Published
Nov 29, 2026, 11:17 PM
Modified
Nov 30, 2026, 9:17 PM