CVE-2026-138444

CHGNet checkpoint loading enables unsafe pickle deserialization

CederGroupHub · chgnet

First documented disclosure · Review checkpoint

Summary

Loading an attacker-supplied CHGNet checkpoint can execute its embedded Python objects.

Severity and exploitation evidence

High · 8.4/10 · CVSS 4.0. Severity source.

Exploitation not established: The reviewed public report and any maintainer confirmation describe research or a correction, not malicious exploitation or identified victims. No payload, model, package or proof of concept was executed in this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

CHGNet.from_file explicitly calls torch.load with weights_only=False, enabling full pickle loading before model construction.

Conditions required

A user loads an untrusted or tampered checkpoint through the affected API. The file must be supplied and loaded; simply hosting or downloading it is insufficient.

Potential impact

Code execution with the model-loading process’s privileges and access to research data or credentials.

Affected versions and configurations

CNA says through 0.4.2. The report tests 0.4.2 and identifies the same behavior on its reviewed main revision.

Fix and mitigation status

PR259 merged November 29 as commit 5403c44c6c1ac053010252988da77dc14e7c811c. It explicitly sets weights_only=True at all four loading sites. The release inventory still ends at v0.4.2; no corrected package was verified.

Practical next steps

Apply the reviewed correction before loading untrusted checkpoints; keep model artifacts trusted and isolate model-loading privileges.

Operating lesson

A model file must be treated as executable input when its loader enables unrestricted deserialization.

Evidence and limits

The correction also covers call sites whose safety previously depended on the installed PyTorch version. Upstream compatibility tests include generated and bundled artifacts; this review did not load them. Issuing CNA publication was 2026-11-29, separate from the original public disclosure. Severity is VulnCheck CNA CVSS 4.0 High 8.4. CNA also supplies CVSS 3.1 High 7.8. Static review only; upstream tests were not repeated.

Sources