CVE-2026-145607: MONAI before 1.6.2 Code Execution via Auto3DSeg ckpt_path Evaluation
MONAI before 1.6.2 contains a code injection vulnerability in Auto3DSeg BundleAlgo.getscore() that evaluates the ckptpath value from configs/hyperparameters.yaml with Python eval(). Attackers can supply a crafted work directory whose ckptpath begins with '$', executing Python code when importbundlealgohistory() or AutoRunner reads its score.
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
Which deployments are exposed?
Deployments using MONAI versions before 1.6.2 are affected when they process Auto3DSeg work directories and read BundleAlgo scores through import_bundle_algo_history() or AutoRunner.
What does an attacker need to exploit this?
An attacker needs to provide a crafted work directory containing configs/hyper_parameters.yaml with a ckpt_path value beginning with '$'. Exploitation occurs when a user or workflow imports the bundle algorithm history or reads its score.
How can I check whether a work directory is malicious or affected?
Inspect configs/hyper_parameters.yaml in Auto3DSeg work directories. A ckpt_path value that begins with '$' is the condition described as triggering Python eval() execution.
What should be done if untrusted work directories may be processed?
Upgrade MONAI to version 1.6.2 or later. Until then, do not import or score untrusted Auto3DSeg work directories, and review their hyper_parameters.yaml files for ckpt_path values beginning with '$'.