Skip to main content
← All vulnerabilities
CVE-2025-58756PYSEC-2025-141GHSA-6VM5-6JV9-RJPJ

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.5.1rc1, 1.5.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Project-MONAI MONAI

    through 1.5.0

  • monaiPyPI

    fixed in 1.5.1rc1

  • monaiPyPI

    fixed in 1.5.1

References 1

GitHub · Project-MONAI/MONAI