pypi package report

Is torch safe?

13 known vulnerabilities, worst severity CRITICAL.

// reach

22 direct dependencies

5 carry known advisories, worst CRITICAL

805 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai models

3,708 published models carry an advisory from this package

13 pin a version the advisory is confirmed against; the rest declare it without a version.

codeparrot/codeparrot-smallCRITICAL
c41/deepopen-banking77-sam13-v1HIGH

3,721 published models

37 declared · 581 observed · 3612 inferred

ModelEvidence
doofz/THX-01declared
griko/gender_cls_svm_ecapa_voxcelebdeclared
Create a free accountto see all 3,719 models and per-model risk

3721 published AI models are associated with this package: 37 name it in a requirements or pyproject file, 581 load it or import it directly, and 3612 are inferred from the runtime stack their declared library pulls in. Only 31 state a version requirement, so this is not a count of affected models.


cvss
9.3
critical

CVSS v4.0 base score out of 10

epss
2.4%
medium

chance of exploitation in 30 days, 84th percentile of all CVEs

xyz score
5.7
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-53q9-r3pm-6pq6, the advisory selected below

// 13 advisories

GHSA-53q9-r3pm-6pq6

CRITICALGitHub ratingCVE-2025-32434
// description

I found a Remote Command Execution (RCE) vulnerability in PyTorch. When loading model using torch.load with weights_only=True, it can still achieve RCE.

// background knowledge

https://github.com/pytorch/pytorch/security As you can see, the PyTorch official documentation considers using torch.load() with weights_only=True to be safe. Since everyone knows that weights_only=False is unsafe, so they will use the weights_only=True to mitigate the seucirty issue. But now, I just proved that even if you use weights_only=True, it can still achieve RCE.

// credit

This vulnerability was found by Ji'an Zhou.

// cvss v4.0 vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack vector
Network
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality (vulnerable system)
High
Integrity (vulnerable system)
High
Availability (vulnerable system)
High
Confidentiality (subsequent systems)
None
Integrity (subsequent systems)
None
Availability (subsequent systems)
None

Checked 2026-11-06 at 21:15 UTC. The most recent advisory here was published 2026-01-27. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.