CVE-2026-145614: MONAI before 1.6.2 Code Execution via load_from_mmar Checkpoint Config
MONAI before 1.6.2 contains an arbitrary code execution vulnerability in monai.apps.mmars.loadfrommmar(), which imports and instantiates any callable named by the path and args fields of an untrusted checkpoint's trainconf data without restriction. Attackers can supply a malicious MMAR checkpoint specifying subprocess.Popen with arbitrary arguments, executing commands when it is loaded despite torch.load weightsonly=True.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
MONAIto a version that resolves this vulnerability.Fixed in 1.6.2
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using MONAI before 1.6.2 are exposed if they load an MMAR checkpoint from an untrusted source through monai.apps.mmars.load_from_mmar(). An attacker can trigger code execution by providing the checkpoint; no authentication or existing privileges are required, but a user or process must load it.
Does using torch.load with weights_only=True prevent exploitation?
No. The issue is in processing the checkpoint's train_conf data after loading: load_from_mmar() imports and instantiates callables specified by the path and args fields. A malicious checkpoint can name subprocess.Popen and provide arbitrary command arguments.
What should teams do if they cannot update immediately?
Do not load MMAR checkpoints from untrusted or unverifiable sources with the affected function. Restrict checkpoint ingestion to artifacts obtained from trusted, controlled sources until MONAI can be updated to 1.6.2 or later.
How can teams determine whether they may be affected?
Identify deployments using MONAI versions before 1.6.2 and determine whether they call monai.apps.mmars.load_from_mmar(). Review the provenance of every MMAR checkpoint those deployments load, especially checkpoints supplied by users or downloaded from external sources.