Chgnet
Monthly
Insecure deserialization in CHGNet through 0.4.2 lets an attacker who supplies a crafted .pth.tar (or .pt graph) checkpoint achieve arbitrary code execution with the privileges of the user who loads it, because CHGNet.from_file(), CHGNet.from_dict(), Trainer.load() and CrystalGraph.from_file() pass the file to torch.load() with weights_only=False and therefore unpickle arbitrary objects such as a pickle __reduce__ gadget. The vendor rates this 8.4 High on CVSS 4.0 (VC:H/VI:H/VA:H), but the attack is local (AV:L) and requires the victim to actively load the untrusted file (UI:A), so it is not a remotely wormable flaw. The upstream project has published a fix in pull request 259 / commit 5403c44c that switches every affected load path to weights_only=True; the linked regression tests confirm the hardened loaders raise UnpicklingError against a shell-command payload while bundled pretrained models still load. No public exploit code was identified at time of analysis, and the issue is not known to be actively exploited.
Insecure deserialization in CHGNet through 0.4.2 lets an attacker who supplies a crafted .pth.tar (or .pt graph) checkpoint achieve arbitrary code execution with the privileges of the user who loads it, because CHGNet.from_file(), CHGNet.from_dict(), Trainer.load() and CrystalGraph.from_file() pass the file to torch.load() with weights_only=False and therefore unpickle arbitrary objects such as a pickle __reduce__ gadget. The vendor rates this 8.4 High on CVSS 4.0 (VC:H/VI:H/VA:H), but the attack is local (AV:L) and requires the victim to actively load the untrusted file (UI:A), so it is not a remotely wormable flaw. The upstream project has published a fix in pull request 259 / commit 5403c44c that switches every affected load path to weights_only=True; the linked regression tests confirm the hardened loaders raise UnpicklingError against a shell-command payload while bundled pretrained models still load. No public exploit code was identified at time of analysis, and the issue is not known to be actively exploited.