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.