CVE-2026-138444: CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load

Published Nov 29, 2026
·
Updated

CHGNet through 0.4.2 contains an insecure deserialization vulnerability that allows attackers to execute code because CHGNet.fromfile() calls torch.load() with weightsonly=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

1 affected component
pypi/chgnet<=0.4.2

Event History

Nov 29, 2026
CVE Published
via MITRE·10:54 PM
Data Sourced
via MITRE·10:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness
Event
via NVD·11:17 PM

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Users or services running CHGNet through 0.4.2 are exposed when they load a model file supplied by an untrusted party through CHGNet.from_file(). The code executes with the privileges of the user or process performing the load.

2

What must an attacker do to exploit the vulnerability?

The attacker must provide a crafted .pth.tar model file containing a pickle __reduce__ gadget and cause a user or process to load it with CHGNet.from_file().

3

How can I identify potentially affected usage in my environment?

Check whether CHGNet through version 0.4.2 is installed and whether applications or workflows call CHGNet.from_file() on .pth.tar files. Loading model artifacts from external, user-controlled, or otherwise untrusted sources is the relevant exposure condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203