CVE-2025-58756CWE-502

MONAI's unsafe torch usage may lead to arbitrary code execution

High · published September 8, 2025

CVSS v3.1
8.8
EPSS
1%
Percentile
54.4
In the wild
Unconfirmed
What it is

MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.0, in `model_dict = torch.load(full_path, map_location=torch.device(device), weights_only=True)` in monai/bundle/scripts.py , `weights_only=True` is loaded securely. However, insecure loading methods still exist elsewhere in the project, such as when loading checkpoints. This is a common practice when users want to reduce training time and costs by loading pre-trained models downloaded from other platforms. Loading a checkpoint containing malicious content can trigger a deserialization vulnerability, leading to code execution. As of time of publication, no known fixed versions are available.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00750 · 54.4th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2025-09-08T23:39Z
EPSS history
Timeline
  • 08 SEP 23:39Z
    MONAI's unsafe torch usage may lead to arbitrary code execution
    cvelistv5