CVE-2026-145613: MONAI 1.0.0 before 1.6.2 OS Command Injection via Auto3DSeg AutoRunner work_dir
MONAI from 1.0.0 before 1.6.2 contains an OS command injection vulnerability in Auto3DSeg AutoRunner that allows attackers to execute commands via the workdir field. Attackers can supply a YAML configuration with shell metacharacters in workdir, which NNI runs through a shell-interpreted trialCommand, executing commands as the pipeline user.
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 from 1.0.0 before 1.6.2 are exposed when they use Auto3DSeg AutoRunner with a YAML configuration whose work_dir value can be influenced by an attacker. Commands execute with the privileges of the pipeline user.
What does an attacker need to exploit it?
An attacker needs to supply a YAML configuration containing shell metacharacters in the work_dir field and have that configuration processed by Auto3DSeg AutoRunner. The vulnerable flow passes the value into an NNI trialCommand that is interpreted by a shell.
How can I tell whether my environment may be affected?
Check whether MONAI is installed at version 1.0.0 through versions earlier than 1.6.2, and whether Auto3DSeg AutoRunner processes YAML configurations from untrusted or insufficiently reviewed sources. Review work_dir values in those configurations for shell metacharacters.