CVE-2026-24747: PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files
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.
Security readout for executives and security teams
Plain-English summary
A malicious PyTorch checkpoint file can potentially take control of a system when loaded, even with the safer weights_only option. The issue affects PyTorch before 2.10.0 and is fixed in 2.10.0. Risk is highest where teams import third-party models, checkpoints, or artifacts into training, evaluation, or inference workflows.
Executive priority
Prioritize remediation for ML systems that load external model checkpoints. This is a high-severity code execution risk, but urgency depends on whether untrusted checkpoint files enter your environment.
Technical view
PyTorch before 2.10.0 has a flaw in the weights_only unpickler. A crafted .pth checkpoint loaded with torch.load(..., weights_only=True) can corrupt memory and may allow arbitrary code execution. The CVSS is 8.8 with user interaction required, mapped to CWE-502 and CWE-94.
Likely exposure
Organizations using PyTorch versions below 2.10.0 are exposed if their systems load untrusted or externally supplied checkpoint files. ML platforms, research environments, CI jobs, model registries, and inference services that ingest third-party .pth artifacts are the most relevant areas to review.
Exploitation context
The source bundle does not show known active exploitation, and KEV is false. Exploitation requires a crafted checkpoint to be loaded by a vulnerable PyTorch process. The available evidence supports potential arbitrary code execution but does not provide confirmed real-world exploitation details.
Researcher notes
Evidence identifies the vulnerable surface as the weights_only unpickler and the trigger as loading a crafted .pth checkpoint. Sources name 2.10.0 as fixed. No exploit procedure, proof of exploitation, or broader affected product list is established in the provided bundle.
Mitigation direction
Upgrade PyTorch to version 2.10.0 or later.
Avoid loading untrusted .pth checkpoint files.
Restrict checkpoint ingestion to trusted sources and controlled repositories.
Review vendor guidance for downstream packaged PyTorch versions.
Apply Red Hat advisories where Red Hat packages are in use.
Validation and detection
Inventory deployed PyTorch versions across hosts, containers, and notebooks.
Flag any PyTorch version below 2.10.0.
Review code paths using torch.load with checkpoint files.
Identify workflows accepting external model artifacts.
Confirm patched package versions after remediation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-502: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
9Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-502 · source CWE mapping
Deserialization of Untrusted Data
Deserialization of Untrusted Data represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.