{"id":"CVE-2025-58756","published":"2025-09-08T23:39:55Z","modified":"2025-09-09T13:28:57Z","title":"MONAI's unsafe torch usage may lead to arbitrary code execution","vendor":"Project-MONAI","product":"MONAI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0075,"percentile":0.55887,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-6vm5-6jv9-rjpj","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":11.18},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"project-monai","affectedVersions":[{"vendor":"Project-MONAI","product":"MONAI","versions":["<= 1.5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-09-09T13:13:04.127686Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"monai","vulnerableRanges":["<1.5.1","<1.5.1rc1"],"patched":["1.5.1","1.5.1rc1"],"from":["GHSA-6vm5-6jv9-rjpj","PYSEC-2025-141"],"provenance":"source"}],"summary":{"text":"MONAI, the AI toolkit for healthcare imaging, contains a deserialization flaw in its checkpoint loading code: although one load path in monai/bundle/scripts.py uses weights_only=True, other insecure loading methods elsewhere in the project remain. An attacker who can supply a malicious checkpoint file, for example a pre-trained model downloaded from another platform, can trigger code execution when a user loads it, with the attack requiring low privileges and no user interaction beyond the load itself.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:26Z"},"euvd":{"id":"EUVD-2025-27190","exploited":false,"provenance":"source"}}