ZDI-26-1052: (0Day) PyTorch Foundation PyTorch PT2 File Parsing Code Injection Remote Code Execution Vulnerability
Summary
A zero-day code injection vulnerability leading to Remote Code Execution (RCE) has been identified in PyTorch Foundation PyTorch. Tracked as CVE-2026-136426 (ZDI-26-1052), this flaw exists within the parsing of PT2 files. Attackers can execute arbitrary code in the context of the current process when a user interacts with or processes a specially crafted PT2 file.
Affected Products
- PyTorch Foundation PyTorch
Technical Details
The vulnerability (CVE-2026-136426) stems from the lack of proper validation of a user-supplied string before using it to execute Python code during the parsing of PT2 files. User interaction is required to exploit this vulnerability, though attack vectors may vary based on implementation. The vendor rejected the report as expected behavior and closed the advisory, leading to its release as a 0-day advisory. The vulnerability holds a CVSS score of 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
Impact
Successful exploitation allows remote attackers to execute arbitrary code on affected installations of PyTorch within the context of the current running process.
- Confidentiality: High — Attackers can execute code to read sensitive data within the context of the running process.
- Integrity: High — Attackers can modify data or execute malicious code within the target system.
- Availability: High — Attackers can cause process crashes or disrupt normal system operations.
Mitigation & Remediation Recommendations
- Restrict Untrusted Files: Avoid opening or processing PT2 files from untrusted or unverified sources.
- Environment Isolation: Run PyTorch file parsing activities inside isolated sandbox environments or containers to minimize system exposure.
- Limit Interaction: Restrict application and user interaction with the affected product's PT2 file parsing module until vendor fixes are made available.
References
- Source Advisory Link (ZDI-26-1052) — http://www.zerodayinitiative.com/advisories/ZDI-26-1052/
- NVD CVE-2026-136426 — https://nvd.nist.gov/vuln/detail/CVE-2026-136426
- MITRE CVE-2026-136426 — https://www.cve.org/CVERecord?id=CVE-2026-136426
- Official PyTorch Security Portal — https://github.com/pytorch/pytorch/security
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.