# CVE-2025-58756: MONAI's unsafe torch usage may lead to arbitrary code execution

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-08T23:39:55.508Z
- Modified: 2026-06-17T09:44:53.017Z
- Also known as: GHSA-6vm5-6jv9-rjpj, PYSEC-2025-141
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Project-MONAI MONAI: <= 1.5.0
- monai (PyPI): before 1.5.1; before 1.5.1rc1
- monai medical_open_network_for_ai: up to 1.5.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6vm5-6jv9-rjpj> (exploit, evidence, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2025-58756](https://www.cve.org/CVERecord?id=CVE-2025-58756), CVE Terms of Use, modified 2025-09-09
- GitHub Advisory Database: [GHSA-6vm5-6jv9-rjpj](https://github.com/advisories/GHSA-6vm5-6jv9-rjpj), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2025-58756](https://nvd.nist.gov/vuln/detail/CVE-2025-58756), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-141](https://osv.dev/vulnerability/PYSEC-2025-141), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2025-58756 · Whole record: https://cve.day/CVE-2025-58756.json · Rebuilt by cve.day 2026-11-25T22:59:04.354Z
