CVE-2026-145609: MONAI before 1.6.2 Code Execution via Untrusted nnUNet Bundle plans.json
MONAI before 1.6.2 contains an unsafe class loading vulnerability in nnunetbundle.py that allows attackers to invoke arbitrary callables via an attacker-controlled plans.json networkclassname. Attackers can distribute a malicious nnUNet bundle whose class name is resolved by pydoc.locate, overwriting arbitrary files and potentially achieving code execution.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.6.2
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of MONAI versions before 1.6.2 are exposed when they load an attacker-controlled or otherwise untrusted nnUNet bundle containing a malicious plans.json file.
What does an attacker need to exploit it?
The attacker needs to get a malicious nnUNet bundle accepted and loaded by the target. Exploitation relies on controlling the network_class_name value in plans.json.
Are installations affected by default?
The issue requires user interaction and loading a malicious bundle. The provided information does not indicate that merely installing MONAI triggers exploitation.
What can be done before upgrading?
Do not load nnUNet bundles from untrusted sources, and validate the provenance and contents of plans.json files before use. Upgrade MONAI to version 1.6.2 or later when possible.