CVE-2026-138444
7.8HighPublished Nov 29, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-502
What an attacker gets
Attackers can execute arbitrary code on your system by providing a malicious model file. This happens when a user loads a crafted .pth.tar file using the CHGNet library.
Root cause
The library uses torch.load() with weights_only=False, which allows insecure deserialization of pickle data.
Affected versions
CHGNet through 0.4.2
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to a version later than 0.4.2 that implements weights_only=True. If you cannot upgrade, do not load model files from untrusted sources.
$ pip install --upgrade chgnetAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- https://github.com/CederGroupHub/chgnet
- https://github.com/CederGroupHub/chgnet/blob/8d04abc467630b30cd8349c2fe12eeab10f62171/chgnet/model/model.py#L686
- https://github.com/CederGroupHub/chgnet/commit/5403c44c6c1ac053010252988da77dc14e7c811c
- https://github.com/CederGroupHub/chgnet/issues/258
- https://github.com/CederGroupHub/chgnet/pull/259
- https://www.vulncheck.com/advisories/chgnet-through-0.4.2-insecure-deserialization-rce-via-chgnet-from-file-torch-load
- https://github.com/CederGroupHub/chgnet/issues/258
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1400418.8HighLocal attackers can execute arbitrary OS commands with elevated privileges. This requires local access to the device to manipulate the mac argument in the protocol.csp endpoint.
- CVE-2026-1400409.9CriticalRemote attackers can execute arbitrary OS commands as root. This requires a low-privileged account to access the port forwarding configuration.
- CVE-2026-1399847.3HighRemote attackers can manipulate the OAuth login callback to bypass input validation. This allows unauthorized access or potential account takeover without requiring authentication.
- CVE-2026-1399837.3HighRemote attackers can execute arbitrary SQL queries against your database. This requires no authentication and targets the mail argument processing.
- CVE-2026-1190028.4HighAn attacker can read sensitive memory data by providing a malicious image file. This requires local access to the device to process the file.
- CVE-2026-1190018.4HighLocal attackers can gain full control over the system by triggering an out-of-bounds write in the image processing module. This requires no user interaction or existing account access.