Elevated
PyTorch model file handling remote code execution flaws
CVE-2026-136426 and 5 more
Opening a bad file in PyTorch can let attackers hack your PC.
- CVE
- CVE-2026-136426 and 5 more
- Score
- CVSS 7.8 · CVE-2026-136426
- First seen
7.8
Products
Disclosed together PyTorch
Mitigation
There is no fix yet. Restrict interaction with PyTorch so it does not open untrusted files or models.
Summary
A flaw in how PyTorch handles model files lets a remote attacker run code on the affected machine through a malicious file. The same group also holds other remote code execution flaws in the same product.
Affected when
- CVE-2026-136426, CVE-2026-136429 reading PT2 files
- CVE-2026-136428 load_compiled_function in use
- CVE-2026-136431 load_state_dict_from_url in use
- CVE-2026-136432 FileSystemReader in use
- CVE-2026-136433 torch_save_to_dcp checkpoint conversion tools in use
- CVE-2026-136428, CVE-2026-136429 target must open a malicious file
- CVE-2026-136431, CVE-2026-136433 target must visit a malicious page or open a malicious file
- CVE-2026-136426, CVE-2026-136432 interaction with the library required
2 other Incidents of this product in the last 30 days
Incidents by product: PyTorch
Other recent Incidents of PyTorch
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)pytorch · not fixed yet
- Debian 12 (bookworm)pytorch · not fixed yet
Sources: Debian Security Tracker
6 CVEs (every link below opens in a new tab)
Read the write-up · zerodayinitiative.com (opens in a new tab)
Each of the 6 CVEs (every link below opens in a new tab)
- CVE-2026-136426Malicious text in PT2 files can make PyTorch run Python code. CVSS 7.8 CVE-2026-136426 write-up
- CVE-2026-136428Loading a compiled model from a malicious file can run code. CVSS 7.8 CVE-2026-136428 write-up
- CVE-2026-136431Loading a model from a web address can run code via a malicious page or file. CVSS 7.8 CVE-2026-136431 write-up
Show 3 more
- CVE-2026-136432Reading distributed checkpoint files with untrusted data can run code. CVSS 7.8 CVE-2026-136432 write-up
- CVE-2026-136433The checkpoint conversion tool can run code from a malicious file. CVSS 7.8 CVE-2026-136433 write-up
- CVE-2026-136429Exposed dangerous function in PT2 archive parsing can run code. CVSS 7.0 CVE-2026-136429 write-up