Skip to main content

CHGNet EUVDEUVD-2026-137868

| CVE-2026-138444 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-11-29 VulnCheck GHSA-fxhh-6q57-mr22
8.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .pth.tar with pickle __reduce__ gadget
  2. Delivery
    Distribute via model hub or shared checkpoint
  3. Exploit
    Victim calls CHGNet.from_file()
  4. Execution
    torch.load unpickles gadget (weights_only=False)
  5. Impact
    Execute arbitrary code as loading user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to load an attacker-controlled model/checkpoint file (.pth.tar, or .pt graph file) through the affected entry points: CHGNet.from_file(), CHGNet.from_dict(), Trainer.load(), or CrystalGraph.from_file(). No special configuration is needed - in CHGNet through 0.4.2 these functions call torch.load() with weights_only=False by default, so any loaded file is unpickled. The key LIMITING factor is that the attacker cannot act remotely: the local vector (AV:L) plus required user interaction (UI:A) means the victim must be convinced to obtain and load an untrusted checkpoint (e.g., from a model hub, shared dataset, or email). Loading only trusted, self-generated checkpoints avoids exposure; the fixed versions enforce weights_only=True.

Impact

The CVSS 4.0 score of 8.4 (High) is driven by full technical impact - VC:H/VI:H/VA:H corresponds to arbitrary code execution with the loading user's privileges - but the attack vector is local (AV:L) and requires active user interaction (UI:A), so this is not a remotely wormable flaw. Exploitation hinges on a victim loading an attacker-supplied model file, placing it in the same risk class as other machine-learning supply-chain / untrusted-model deserialization issues (CWE-502). No EPSS probability and no KEV status were provided, and the CVE is not listed in CISA KEV, so there is no evidence of widespread automated exploitation; the fix commit includes a demonstration test proving the __reduce__ gadget works, but the input does not confirm a packaged working exploit. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with high technical impact tempered by the user-interaction requirement and a low real-world deployment footprint. Net: a genuine priority for anyone who loads third-party CHGNet checkpoints, but low mass-exploitation risk rather than an emergency - the AV:L/UI:A profile means social engineering or a poisoned model repository is the realistic delivery path.

Exploit ScenarioDerived

An attacker publishes a malicious CHGNet checkpoint (a .pth.tar file) on a model-sharing hub, in a research dataset, or via a pull request, containing a pickle object whose __reduce__ method invokes os.system. When a researcher loads it with CHGNet.from_file() (or from_dict/Trainer.load), torch.load(..., weights_only=False) unpickles the gadget and runs the attacker's command with that user's privileges. A public PoC reference exists in the fix commit's test (UnsafePayload returning os.system) demonstrating the technique; it is not verified as a packaged working exploit against a live target.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

Insecure deserialization in CHGNet through 0.4.2 lets an attacker who supplies a crafted .pth.tar (or .pt graph) checkpoint achieve arbitrary code execution with the privileges of the user who loads it, because CHGNet.from_file(), CHGNet.from_dict(), Trainer.load() and CrystalGraph.from_file() pass the file to torch.load() with weights_only=False and therefore unpickle arbitrary objects such as a pickle __reduce__ gadget. The vendor rates this 8.4 High on CVSS 4.0 (VC:H/VI:H/VA:H), but the attack is local (AV:L) and requires the victim to actively load the untrusted file (UI:A), so it is not a remotely wormable flaw. The upstream project has published a fix in pull request 259 / commit 5403c44c that switches every affected load path to weights_only=True; the linked regression tests confirm the hardened loaders raise UnpicklingError against a shell-command payload while bundled pretrained models still load. No public exploit code was identified at time of analysis, and the issue is not known to be actively exploited.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit 5403c44c6c1ac053010252988da77dc14e7c811c (pull request https://github.com/CederGroupHub/chgnet/pull/259), which changes every affected torch.load() call in chgnet/graph/crystalgraph.py, chgnet/model/model.py and chgnet/trainer/trainer.py to weights_only=True, and prioritize it this week per the vuln.today decision label. Because the fix is delivered as a Git commit rather than a tagged release in the supplied data, confirm whether a published CHGNet version above 0.4.2 contains it before relying on a package upgrade. Where patching must wait, the compensating control is provenance: load only self-generated or otherwise trusted checkpoints, since the vulnerability only fires when the victim opens an untrusted file, and pre-validate any externally sourced .pth.tar or .pt artifact by attempting to load it with torch.load(..., weights_only=True) in an isolated, unprivileged sandbox before use - the trade-off is that legacy checkpoints containing non-tensor Python objects will fail with UnpicklingError under the restricted loader, which is exactly the behavior the vendor's new tests enforce for bundled 0.2.0, 0.3.0 and r2scan models. Details are in the upstream issue https://github.com/CederGroupHub/chgnet/issues/258 and the VulnCheck advisory https://www.vulncheck.com/advisories/chgnet-through-0.4.2-insecure-deserialization-rce-via-chgnet-from-file-torch-load.

Affected VersionsENISA

chgnet 0 ≤0.4.2

Affected Packages

euvd chgnet no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CHGNet (Crystal Hamiltonian Graph Neural Network) is a PyTorch-based universal interatomic potential used in materials-science workflows; its models are distributed as serialized checkpoints and its crystal graph objects are saved as .pt files. The flaw is CWE-502 (Deserialization of Untrusted Data): PyTorch's torch.load() uses Python pickle by default, and unless the weights_only flag is set, any object graph embedded in the file is reconstructed - including a __reduce__ method that names a callable such as os.system and its arguments. The affected CPE is cpe:2.3:a:cedergrouphub:chgnet (all versions through 0.4.2), and the vulnerable sinks are the four load entry points patched in commit 5403c44c: chgnet/graph/crystalgraph.py from_file (torch.load(file_name)), chgnet/model/model.py from_dict (torch.load(path, map_location='cpu', weights_only=False)), chgnet/trainer/trainer.py train checkpoint reload and Trainer.load, all of which now pass weights_only=True. The commit also adds tests/test_safe_loading.py, which builds an UnsafePayload whose __reduce__ returns (os.system, (command,)) and asserts that CHGNet.from_file, Trainer.load and CrystalGraph.from_file raise pickle.UnpicklingError without touching the marker file; additional tests confirm the 0.2.0, 0.3.0 and r2scan pretrained models and CrystalGraph/Trainer save-load round trips remain compatible with the restricted loader. The exact trigger syntax required for an attacker to influence file provenance is not described beyond the fact that the victim loads the crafted checkpoint.

Know when Chgnet gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.4 HIGH
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
vuln.today AI 7.8 HIGH

Attacker supplies a file the victim must load (AV:L, UI:R) with no attacker privileges (PR:N); unpickling yields full code execution as the user, so C/I/A:H and scope unchanged.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-138444 is a high-severity flaw in CHGNet (through 0.4.2) that allows an attacker to execute arbitrary code when a user loads a malicious model checkpoint file. This affects data scientists and researchers who use CHGNet for materials science workflows, potentially leading to compromised workstations and data breaches. Leadership should prioritize patching because the vulnerability enables code execution under the user's privileges, though exploitation requires user interaction.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 59% exploitable
Prevalence
Low
niche materials-science ML library, research/academic use only
Social Media
5
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy