CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load
- State
- Published
- Severity
- 8.4 High
- Published
- Nov 29, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 29, 2026
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.
| Product | Versions |
|---|---|
| chgnet CederGroupHub | 0.4.2 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.4 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-502 Deserialization of Untrusted Data
References
- GitHub Issue #258Issue Tracker
- https://github.com/CederGroupHub/chgnetProduct Page
- https://github.com/CederGroupHub/chgnet/commit/5403c44c6c1ac053010252988da77dc14e7c811cPatch
- https://github.com/CederGroupHub/chgnet/pull/259Issue TrackerPatch
- https://github.com/CederGroupHub/chgnet/blob/8d04abc467630b30cd8349c2fe12eeab10f62171/chgnet/model/model.py#L686Technical Details
- VulnCheck Advisory: CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.loadThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.