Intel

AIKIDO-2025-10413

openai-whisper is vulnerable to Unsafe Deserialization

Unsafe Deserialization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 26, 2025

65

Medium Risk

This Affects:

PYTHONopenai-whisper
20230117 - 20240930
Fixed in 20250625
Are you affected? Scan for Free

TL;DR

Affected versions of this package load models using torch.load() without setting the weights_only parameter to True, thereby enabling full pickle deserialization. Since pickle is inherently insecure, this allows the execution of arbitrary code during model loading. A remote attacker could exploit this behavior by crafting malicious pickle data, potentially leading to serious vulnerabilities such as remote code execution (RCE).

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

openai-whisper is vulnerable to Unsafe Deserialization in versions 20230117 - 20240930.

How to fix this

Upgrade the openai-whisper library to the patch version.