CVE-2025-58756

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

Published Sep 8, 2025 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-27190 MONAI: Unsafe torch usage may lead to arbitrary code execution
Github GHSA Github GHSA GHSA-6vm5-6jv9-rjpj MONAI: Unsafe torch usage may lead to arbitrary code execution
History
Type Values Removed Values Added
First Time appeared Monai medical Open Network For Ai
CPEs cpe:2.3:a:monai:medical_open_network_for_ai:*:*:*:*:*:*:*:*
Vendors & Products Monai medical Open Network For Ai
Type Values Removed Values Added
First Time appeared Monai
Monai monai
Vendors & Products Monai
Monai monai
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title MONAI's unsafe torch usage may lead to arbitrary code execution
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 9, 2025, 1:28 PM
Reserved
Sep 4, 2025, 7:18 PM
Status
Analyzed
Published
Sep 9, 2025, 12:15 AM
Modified
Jun 17, 2026, 9:44 AM