{"id":"CVE-2026-24747","published":"2026-01-27T21:13:46Z","modified":"2026-07-15T01:17:00Z","title":"PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files","vendor":"pytorch","product":"pytorch","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00799,"percentile":0.57452,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pytorch/pytorch/issues/163105","tags":["x_refsource_MISC"]},{"url":"https://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139","tags":["x_refsource_MISC"]},{"url":"https://github.com/pytorch/pytorch/releases/tag/v2.10.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-24747","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2433612","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24747.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":11.49},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"pytorch","affectedVersions":[{"vendor":"pytorch","product":"pytorch","versions":["< 2.10.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-30T04:55:40.763016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"torch","vulnerableRanges":["<2.10.0"],"patched":["2.10.0"],"from":["GHSA-63cw-57p8-fm3p","PYSEC-2026-2286"],"provenance":"source"},{"ecosystem":"PyPI","package":"pytorch","vulnerableRanges":["<2.10.0"],"patched":["2.10.0"],"from":["PYSEC-2026-1856"],"provenance":"source"}],"summary":{"text":"PyTorch's weights_only unpickler, used by torch.load, is flawed in versions prior to 2.10.0. The flaw is in PyTorch's own checkpoint deserialization component. An attacker can supply a crafted .pth checkpoint file that, when loaded with torch.load(..., weights_only=True), can corrupt memory and potentially achieve arbitrary code execution, provided the victim is induced to load the file (user interaction is required and no authentication is needed).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:43Z"},"euvd":{"id":"EUVD-2026-4738","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-55554","published":"2025-09-25","fixed":"2.9.0","kev":false},{"cve":"CVE-2025-2999","published":"2025-03-31","fixed":"2.9.1","kev":false,"link":{"from":"CVE-2025-2999","to":"CVE-2026-24747","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:torch","fromFixed":"2.9.1","toFixed":"2.10.0","daysApart":302}]}},{"cve":"CVE-2025-3001","published":"2025-03-31","fixed":"2.10.0","kev":false},{"cve":"CVE-2026-24747","published":"2026-01-27","fixed":"2.10.0","kev":false},{"cve":"CVE-2025-3000","published":"2025-03-31","fixed":"2.13.0","kev":false}],"package":"PyPI:torch"}}