PyPI
CVE-2026-138444
CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load
- Severity
- High 8.4
- Published
- 29 Nov 2026
- Last changed
- 29 Nov 2026
- Added to UpHeron
- 29 Nov 2026
- Attack
- Needs local access · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Take it down
- CVSS 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- Sources
- CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
chgnetPyPI · osv:PyPI:chgnet |
|
About chgnet
- Weekly downloads (PyPI)
- 15,805PyPI Stats, 29 Nov 2026
This is the only vulnerability in chgnet in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-138444