CVE-2025-58756
HIGH 8.8CVSS 3.1MONAI: Unsafe torch usage may lead to arbitrary code execution
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.
- Published
- 9 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-502
- Also known as
- GHSA-6vm5-6jv9-rjpjPYSEC-2025-141
- Sources
- NVDJSONOSV GHSA-6vm5-6jv9-rjpjJSONOSV PYSEC-2025-141JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | monai | medical_open_network_for_aicpe:2.3:a:monai:medical_open_network_for_ai:*:*:*:*:*:*:*:* |
<= 1.5.0 | |
| OSV | PyPI | monai | < 1.5.1 | 1.5.1 |
| OSV | PyPI | monai | < 1.5.1rc1 | 1.5.1rc1 |
References
- https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6vm5-6jv9-rjpj · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2025-58756 · ADVISORY
- https://github.com/Project-MONAI/MONAI/pull/8566 · WEB
- https://github.com/Project-MONAI/MONAI/commit/948fbb703adcb87cd04ebd83d20dcd8d73bf6259 · WEB
- https://github.com/Project-MONAI/MONAI · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/monai/PYSEC-2025-141.yaml · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 9 Sep 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Sep 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Sep 2025)