Advisory

PYSEC-2025-141

Also known as: CVE-2025-58756, GHSA-6vm5-6jv9-rjpj

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2025-09-09 00:15 UTC
Modified
2026-05-20 09:19 UTC

Affected packages and fixes

monai

PyPI · All systems

Affected

  • introduced 0, fixed 1.5.1rc1 (ecosystem)

Fixed versions

1.5.1rc1

Fix

  • Fixed version 1.5.1rc1
    pip install --upgrade monai==1.5.1rc1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences