PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-502.
Summary
PyTorch is a Python package that provides tensor computation. Prior to version 2.10.0, a vulnerability in PyTorch's `weights_only` unpickler allows an attacker to craft a malicious checkpoint file (`.pth`) that, when loaded with `torch.load(..., weights_only=True)`, can corrupt memory and potentially lead to arbitrary code execution. Version 2.10.0 fixes the issue.
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 | pytorch | before 2.10.0 | 2.10.0 | Patch available | CNA |
| — | torch (PyPI) | before 2.10.0 | 2.10.0 | Patch available | GHSA-63cw-57p8-fm3p |
- pytorch Vendorpytorch Affected before 2.10.0 Fixed in 2.10.0 Patch available CNA
- torch (PyPI) Vendor— Affected before 2.10.0 Fixed in 2.10.0 Patch available GHSA-63cw-57p8-fm3p
Remediation
- Fix · CNA pytorch (pytorch) Fixed in 2.10.0
- Fix · GHSA-63cw-57p8-fm3p torch (PyPI) Fixed in 2.10.0 Advisory →
Red Hat 1 advisory
- RHSA-2026:24977 Released 2026-06-10 · Red Hat rating ImportantRHOAI 2.25.7 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-caikit-nlp-rhel9, registry.redhat.io/rhoai/odh-caikit-tgis-serving-rhel9, registry.redhat.io/rhoai/odh-dashboard-rhel9 +34
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI 2.25 | Fixed | RHSA-2026:24977 |
Not affected: 2 products
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 2.25
Timeline
- 2026-10-02 Threatist record created from CVE-2026-24747
- 2026-10-03 Alias added: GHSA-63cw-57p8-fm3p
- 2026-11-04 Fix available: PyPI/[email protected] · GHSA-63cw-57p8-fm3p
- 2026-11-04 8 new references · GHSA-63cw-57p8-fm3p
References
Advisory 3
Other 10
- https://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139
- https://github.com/pytorch/pytorch/releases/tag/v2.10.0
- https://access.redhat.com/errata/RHSA-2026:24977
- https://access.redhat.com/security/cve/CVE-2026-24747
- https://bugzilla.redhat.com/show_bug.cgi?id=2433612
- https://github.com/pypa/advisory-database/tree/main/vulns/pytorch/PYSEC-2026-1856.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2026-2286.yaml
- https://github.com/pytorch/pytorch
- https://pypi.org/project/pytorch
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24747.json
More pytorch vulnerabilities
- TI-2023-23379 TorchServe Server-Side Request Forgery CVSS 3.1CRITICAL 10.0
- TI-2026-86102 Predictable temp path in TorchServe enables local privilege escalation CVSS 3.1HIGH 7.8
- TI-2026-46956 PyTorch torchvision GIF Decoder Out-of-bounds Heap Read CVSS 4.0HIGH 7.1
- TI-2024-06099 Unclaimed S3 Bucket Usage in pytorch/serve CVSS 3.0MEDIUM 6.3
- TI-2025-23505 PyTorch: `torch.load` with `weights_only=True` leads to remote code execution CVSS 4.0CRITICAL 9.3
- TI-2024-23271 TorchServe gRPC Port Exposure CVSS 3.1HIGH 8.2
Sources
- CVE-2026-24747 · CVE Program
- CVE-2026-24747 · NVD
- FIRST EPSS
- GHSA-63cw-57p8-fm3p · GitHub Advisory Database · CC BY 4.0
- CVE-2026-24747 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences