home / blog
2026-11-30 · high
CVE-2026-138444: Insecure Deserialization Vulnerability in CHGNet
Insecure deserialization vulnerability in CHGNet enables code execution.

The CVE-2026-138444 vulnerability concerns an insecure deserialization flaw in CHGNet, a deep learning library. The issue lies in the CHGNet.from_file() method which uses torch.load() with weights_only=False, allowing an attacker to execute arbitrary code through crafted .pth.tar files containing a pickle __reduce__ gadget.
The vulnerability severity is rated as high with a CVSS score of 7.8. The status is officially confirmed via NVD with publication date November 29, 2026. There are also reports of public repositories claiming to contain exploits for this vulnerability, increasing the concrete risk of exploitation.
To protect against this vulnerability, it's necessary to apply the patch as soon as it becomes available. While waiting for the update, avoid loading untrusted .pth.tar files and verify the integrity of models used. It's also advisable to implement strict access controls and carefully monitor file loading activities.
At a glance
- What
- Insecure deserialization in CHGNet that allows arbitrary code execution through crafted .pth.tar files
- Severity
- High (CVSS 7.8)
- Affected versions
- CHGNet through 0.4.2
- Fix
- Not reported
- Status
- Published on 2026-11-29
- Action
- Apply patch when available, don't load untrusted .pth.tar files
Sources: NVD, CVE-2026-138444