Skip to content

Commit 3c54c56

Browse files
1 parent 4d9a9af commit 3c54c56

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-63cw-57p8-fm3p",
4+
"modified": "2026-01-27T20:10:54Z",
5+
"published": "2026-01-27T20:10:54Z",
6+
"aliases": [
7+
"CVE-2026-24747"
8+
],
9+
"summary": "PyTorch Vulnerable to Remote Code Execution via Untrusted Checkpoint Files",
10+
"details": "### Summary\n\nA 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.\n\n### Vulnerability Details\n\nThe `weights_only=True` unpickler failed to properly validate pickle opcodes and storage metadata, allowing:\n\n1. **Heap memory corruption** via `SETITEM`/`SETITEMS` opcodes applied to non-dictionary types\n2. **Storage size mismatch** between declared element count and actual data in the archive\n\n### Impact\n\nAn attacker who can convince a user to load a malicious checkpoint file may achieve arbitrary code execution in the context of the victim's process.\n\n\n# Credit\nJi'an Zhou",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "PyPI",
21+
"name": "pytorch"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "2.10.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/pytorch/pytorch/security/advisories/GHSA-63cw-57p8-fm3p"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/pytorch/pytorch/issues/163105"
46+
},
47+
{
48+
"type": "PACKAGE",
49+
"url": "https://github.com/pytorch/pytorch"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/pytorch/pytorch/163122/commit/954dc5183ee9205cbe79876ad05dd2d9ae752139"
54+
},
55+
{
56+
"type": "WEB",
57+
"url": "https://github.com/pytorch/pytorch/releases/tag/v2.10.0"
58+
}
59+
],
60+
"database_specific": {
61+
"cwe_ids": [
62+
"CWE-502",
63+
"CWE-94"
64+
],
65+
"severity": "HIGH",
66+
"github_reviewed": true,
67+
"github_reviewed_at": "2026-01-27T20:10:54Z",
68+
"nvd_published_at": null
69+
}
70+
}

0 commit comments

Comments
 (0)