CVE-2026-138444
published high CVSS 4.0 · 8.4CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| CederGroupHub | — | chgnet0 through 0.4.2 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| CederGroupHub | chgnet | 0 through 0.4.2 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-502 Deserialization of Untrusted Data
References
6- https://github.com/CederGroupHub/chgnet
- https://github.com/CederGroupHub/chgnet/blob/8d04abc467630b30cd8349c2fe12eeab10f62171/chgnet/model/model.py#L686
- https://github.com/CederGroupHub/chgnet/commit/5403c44c6c1ac053010252988da77dc14e7c811c
- GitHub Issue #258 https://github.com/CederGroupHub/chgnet/issues/258
- https://github.com/CederGroupHub/chgnet/pull/259
- VulnCheck Advisory: CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load https://www.vulncheck.com/advisories/chgnet-through-0.4.2-insecure-deserialization-rce-via-chgnet-from-file-torch-load
Provider assertions
2VulnCheck · cna
CHGNet through 0.4.2 Insecure Deserialization RCE via CHGNet.from_file torch.load
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9db78496652322206d1b80003d091b625b1ea217e5d3bb811fc3d073e185274f
- Ingested
- 30 Nov 2026, 20:16:30 UTC
- Source record
- Official CVE record