CVE-2025-58756 MONAI's unsafe torch usage may lead to arbitrary code execution
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| monai medical open network for ai | <= 1.5.0 | after 1.5.0 | Fixed |
| pypi monai(PyPI) | < 1.5.1; < 1.5.1rc1; <= 1.5.0; = 0.0.1 +39 more | 1.5.1, 1.5.1rc1 | Fixed |
| Project-MONAI MONAI | = <= 1.5.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi monai(PyPI) | < 1.5.1 | 1.5.1 |
| pypi monai(PyPI) | = 0.0.1 | No fix listed |
| pypi monai(PyPI) | = 0.1.0 | No fix listed |
| pypi monai(PyPI) | = 0.2.0 | No fix listed |
| pypi monai(PyPI) | = 0.3.0 | No fix listed |
| pypi monai(PyPI) | = 0.4.0 | No fix listed |
| pypi monai(PyPI) | = 0.5.0 | No fix listed |
| pypi monai(PyPI) | = 0.5.1 | No fix listed |
| pypi monai(PyPI) | = 0.5.2 | No fix listed |
| pypi monai(PyPI) | = 0.5.3 | No fix listed |
| pypi monai(PyPI) | = 0.6.0 | No fix listed |
| pypi monai(PyPI) | = 0.7.0 | No fix listed |
| pypi monai(PyPI) | = 0.8.0 | No fix listed |
| pypi monai(PyPI) | = 0.8.1 | No fix listed |
| pypi monai(PyPI) | = 0.9.0 | No fix listed |
| pypi monai(PyPI) | = 0.9.1 | No fix listed |
| pypi monai(PyPI) | = 1.0.0 | No fix listed |
| pypi monai(PyPI) | = 1.0.1 | No fix listed |
| pypi monai(PyPI) | = 1.1.0 | No fix listed |
| pypi monai(PyPI) | = 1.2.0 | No fix listed |
| pypi monai(PyPI) | = 1.3.0 | No fix listed |
| pypi monai(PyPI) | = 1.3.1 | No fix listed |
| pypi monai(PyPI) | = 1.3.2 | No fix listed |
| pypi monai(PyPI) | = 1.3.2rc1 | No fix listed |
| pypi monai(PyPI) | = 1.3.3rc1 | No fix listed |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi monai(PyPI) | = 1.4.0 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc1 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc10 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc11 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc12 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc2 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc3 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc4 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc5 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc6 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc7 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc8 | No fix listed |
| pypi monai(PyPI) | = 1.4.0rc9 | No fix listed |
| pypi monai(PyPI) | = 1.4.1rc1 | No fix listed |
| pypi monai(PyPI) | = 1.5.0 | No fix listed |
| pypi monai(PyPI) | = 1.5.0rc1 | No fix listed |
| pypi monai(PyPI) | < 1.5.1rc1 | 1.5.1rc1 |
| pypi monai(PyPI) | <= 1.5.0 | No fix listed |
| Project-MONAI MONAI | = <= 1.5.0 | No fix listed |
| monai medical open network for ai | <= 1.5.0 | No fix listed |
References
- https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6vm5-6jv9-rjpj exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- github.com