PyTorch load_compiled_function Deserialization Allows Remote Code Execution
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
PyTorch Foundation's PyTorch is affected by a deserialization of untrusted data flaw (CWE-502) in the load_compiled_function function. The function does not properly validate user-supplied data, so an attacker can run arbitrary code in the context of the current process once the target opens a malicious file. The CVSS 3.0 base score is 7.8 (HIGH), and the vector is CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The issue is tracked as ZDI-CAN-32603 and is not listed in CISA KEV.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
PyTorch Foundation PyTorch load_compiled_function Deserialization of Untrusted Data Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of PyTorch Foundation PyTorch. User interaction is required to exploit this vulnerability in that the target must open a malicious file. The specific flaw exists within the load_compiled_function function. The issue results from the lack of proper validation of user-supplied data, which can result in deserialization of untrusted data. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-32603.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PyTorch Foundation | PyTorch | 2.13.0 | — | No fix listed | CNA |
- PyTorch VendorPyTorch Foundation Affected 2.13.0 Fixed in — No fix listed CNA
Remediation
No fix is listed for PyTorch 2.13.0, the affected version. Until a fixed release is available, avoid loading compiled functions from files that are not trusted.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Timeline
- 2026-11-24 Threatist record created from CVE-2026-136428
- 2026-11-24 Alias added: GHSA-qxg3-cqcm-fvww
- 2026-11-25 CISA SSVC decision points changed
References
Other 1
More PyTorch Foundation vulnerabilities
- TI-2026-97753 PyTorch load_state_dict_from_url flaw allows remote code execution CVSS 3.0HIGH 7.8
- TI-2026-97752 Path traversal in PyTorch AOTIModelPackageLoader allows code execution CVSS 3.0HIGH 7.8
- TI-2026-97749 Command injection in PyTorch AOTIModelPackageLoader CVSS 3.0HIGH 7.8
- TI-2026-97755 Untrusted data deserialization in PyTorch allows remote code execution CVSS 3.0HIGH 7.8
- TI-2026-97754 PyTorch FileSystemReader deserialization flaw allows code execution CVSS 3.0HIGH 7.8
- TI-2026-97748 Code injection in PyTorch PT2 file parsing enables code execution CVSS 3.0HIGH 7.8
Sources
- CVE-2026-136428 · CVE Program
- CVE-2026-136428 · NVD
- FIRST EPSS
- GHSA-qxg3-cqcm-fvww · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences