CVE-2026-145608: MONAI 1.0.0 before 1.6.2 Code Injection via Auto3DSeg BundleGen algos
MONAI from 1.0.0 before 1.6.2 contains a code injection vulnerability in Auto3DSeg BundleGen that allows attackers to execute arbitrary Python code by supplying a crafted algos dict parsed through ConfigParser. Attackers can place $-prefixed expressions or malicious target directives in an input.yaml consumed by AutoRunner, or pass them to the BundleGen API or CLI, to run code via eval() or pydoc.locate() in the MONAI process.
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?
MONAI deployments using Auto3DSeg BundleGen are exposed if they process attacker-controlled algos dictionaries or an input.yaml through AutoRunner, the BundleGen API, or the BundleGen CLI. The vulnerable versions are 1.0.0 through versions before 1.6.2.
What does an attacker need to provide to trigger code execution?
The attacker needs to supply crafted BundleGen algorithm configuration input. This can include $-prefixed expressions processed through eval() or malicious _target_ directives resolved through pydoc.locate().
Is user interaction required for exploitation?
Yes. The supplied CVSS vector specifies UI:R, meaning a user or process must invoke AutoRunner or otherwise consume the crafted configuration through the affected API or CLI. No attacker privileges are required according to the supplied vector.
How can I tell whether my environment may be affected?
Check whether the installed MONAI version is at least 1.0.0 and earlier than 1.6.2, and whether Auto3DSeg BundleGen processes input.yaml files or algos dictionaries from untrusted sources. Review AutoRunner, BundleGen API, and CLI workflows for configuration inputs containing $-prefixed expressions or _target_ directives.