Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Unveiling the Perils of the TorchScript Engine in PyTorch

DEFCONConference via YouTube

Overview

Coursera Spring Sale
40% Off Coursera Plus Annual!
Grab it
Explore a critical security vulnerability discovered in PyTorch's TorchScript engine through this 35-minute DEF CON 33 conference talk. Delve into the research that challenged the long-held belief that PyTorch's weights_only=True parameter provides complete security when loading models. Learn how researchers Ji'an Zhou and Lishuo Song uncovered that torch.load with weights_only=True still supports TorchScript, leading to the discovery of multiple vulnerabilities that enable Remote Code Execution (RCE). Understand the evolution of PyTorch's security measures, from the initial use of insecure pickle deserialization to the introduction of the weights_only parameter, and discover why this supposedly safe approach remained vulnerable. Gain insights into the researchers' methodology for discovering this vulnerability, which was acknowledged by PyTorch and assigned CVE-2025-32434. Examine the profound implications this finding has for numerous AI applications and machine learning frameworks. Understand how this discovery reinforces the principle that perceived security measures may not always provide the protection they promise, turning what was considered a "Safe Harbor" into "Hostile Waters."

Syllabus

DEF CON 33 - Unveiling the Perils of the TorchScript Engine in PyTorch - Ji'an Zhou, Lishuo Song

Taught by

DEFCONConference

Reviews

Start your review of Unveiling the Perils of the TorchScript Engine in PyTorch

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.