CVE-2026-138444

7.8High

Published Nov 29, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
None
User action
Required
Impact
Full C/I/A compromise
Weakness
CWE-502

What an attacker gets

Attackers can execute arbitrary code on your system by providing a malicious model file. This happens when a user loads a crafted .pth.tar file using the CHGNet library.

Root cause

The library uses torch.load() with weights_only=False, which allows insecure deserialization of pickle data.

Affected versions

CHGNet through 0.4.2

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to a version later than 0.4.2 that implements weights_only=True. If you cannot upgrade, do not load model files from untrusted sources.

remediation — bash
$ pip install --upgrade chgnet

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-138444

More fully triaged vulnerabilities you may want to check next.