Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

Known CVEpypi/torch

CVE-2025-32434: PyTorch torch.load remote code execution, even with weights_only=True

Critical

Loading a crafted model with torch.load runs arbitrary code even when weights_only=True was meant to prevent it. Upgrade to 2.6.0 and prefer safetensors.

Affected and fixed versions

Affected: < 2.6.0. Fixed in 2.6.0.

Sources

See every known CVE, and the ones in the news, in the Learning Center