Deserialization of Untrusted Data in PyTorch - #VU166063

 

Deserialization of Untrusted Data in PyTorch - #VU166063

Published: November 12, 2026


Vulnerability identifier: #VU166063
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-502
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to read arbitrary text files accessible to the victim process.

The vulnerability exists due to unsafe deserialization in torch.load(weights_only=True), which trusts Python's traceback.FrameSummary class when loading checkpoints. A remote attacker can induce a victim to load a malicious checkpoint specifying filenames and line numbers to disclose file contents through application logging, display, or re-saving of the loaded object.


Affected software

PyTorch

Remediation

Install security update from vendor's website.

PyTorch - update to 2.15.0

External References

Related Security Bulletins