MONAI's unsafe torch usage may lead to arbitrary code execution
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Project-MONAI | MONAI | up to 1.5.0 | — | No fix listed | CNA |
| — | monai (PyPI) | before 1.5.1 | 1.5.1 | Patch available | GHSA-6vm5-6jv9-rjpj |
- MONAI VendorProject-MONAI Affected up to 1.5.0 Fixed in — No fix listed CNA
- monai (PyPI) Vendor— Affected before 1.5.1 Fixed in 1.5.1 Patch available GHSA-6vm5-6jv9-rjpj
Remediation
- Fix · GHSA-6vm5-6jv9-rjpj monai (PyPI) Fixed in 1.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58756
- 2026-10-03 Alias added: GHSA-6vm5-6jv9-rjpj
References
More Project-MONAI vulnerabilities
- TI-2026-85662 MONAI accepts non-finite DICOM geometry values, corrupting inference CVSS 3.1CRITICAL 9.3
- TI-2026-64984 MONAI before 1.5.2 Remote Code Execution via Pickle Deserialization CVSS 4.0HIGH 8.8
- TI-2025-36415 MONAI's unsafe use of Pickle deserialization may lead to RCE CVSS 3.1HIGH 8.8
- TI-2026-83080 Remote code execution in MONAI Auto3DSeg algo_from_json() CVSS 4.0HIGH 8.5
- TI-2026-64983 MONAI before 1.6.0 Remote Code Execution via NumpyReader CVSS 4.0HIGH 8.5
- TI-2026-64982 MONAI before 1.6.0 OS Command Injection via dataset_name_or_id CVSS 4.0HIGH 8.6
Sources
- CVE-2025-58756 · CVE Program
- CVE-2025-58756 · NVD
- FIRST EPSS
- GHSA-6vm5-6jv9-rjpj · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences