CVE-2026-100844
HighCVSS 8.4Exploitation Probability (EPSS)
Elevated risk62th percentile - higher than 62% of all known CVEs
Summary
MONAI before 1.6.0 is vulnerable to OS command injection in the nnUNetV2Runner component. User-controlled values from the YAML configuration file and CLI/kwargs arguments are concatenated into a command string without quoting or validation and then passed to subprocess with shell=True. If a victim loads a crafted configuration file, arbitrary commands are executed with the privileges of the user running the job.
Risk Assessment
Arbitrary command execution can lead to full system compromise, data theft, or privilege escalation.
Recommendation
Update MONAI to version 1.6.0 or later. Do not load configuration files from untrusted sources.
Other vulnerabilities in MONAI
See all- CVE-2026-48705Critical
Prior to 1.6.1, MONAI's PydicomReader._get_affine() trusts non-finite values in DICOM PixelSpacing, ImagePositionPatient, and ImageOrientationPatient fields and composes them into an affine matrix without validation. An unauthenticated attacker who can upload a crafted DICOM to a default MONAILabel deployment can propagate NaN or infinity values, causing inference failures, persistent datastore poisoning, or geometrically corrupted results.
- CVE-2026-145614High
MONAI before 1.6.2 contains an arbitrary code execution vulnerability in monai.apps.mmars.load_from_mmar(), which imports and instantiates any callable named by the path and args fields of an untrusted checkpoint's train_conf 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 weights_only=True.
- CVE-2026-145613High
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 work_dir field. Attackers can supply a YAML configuration with shell metacharacters in work_dir, which NNI runs through a shell-interpreted trialCommand, executing commands as the pipeline user.
- CVE-2026-145612Medium
MONAI from 1.2.0 before 1.6.2 contains an argument injection vulnerability in Auto3DSeg EnsembleRunner that lets attackers inject torchrun arguments through whitespace in YAML configuration values. Attackers supplying crafted work_dir or sigmoid values can override --work_dir or inject --output_dir on multi-GPU systems, redirecting data, model loading and output.
- CVE-2026-145611High
MONAI before 1.6.2 contains a path traversal vulnerability in BundleAlgo.export_to_disk() that fails to verify that a caller-supplied algo_name stays under output_path. Attackers who control algo_name, or an algos mapping key passed to BundleGen, can supply '../' sequences or absolute paths to recursively delete directories and copy template files outside the output directory.
- CVE-2026-145610High
MONAI before 1.6.2 contains a code injection vulnerability in monai.auto3dseg.utils.algo_from_json(), which copies _state_.template_path from an algo JSON file into a ConfigParser that evaluates '$' expressions with eval(). Attackers can supply a crafted algo_object.json with a legitimate BundleAlgo _target_ to bypass the Algo subclass check and execute arbitrary Python code when it is loaded.
- CVE-2026-145609High
MONAI before 1.6.2 contains an unsafe class loading vulnerability in nnunet_bundle.py that allows attackers to invoke arbitrary callables via an attacker-controlled plans.json network_class_name. Attackers can distribute a malicious nnUNet bundle whose class name is resolved by pydoc.locate, overwriting arbitrary files and potentially achieving code execution.
- CVE-2026-145608High
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.
- CVE-2026-145607High
MONAI before 1.6.2 contains a code injection vulnerability in Auto3DSeg BundleAlgo.get_score() that evaluates the ckpt_path value from configs/hyper_parameters.yaml with Python eval(). Attackers can supply a crafted work directory whose ckpt_path begins with '$', executing Python code when import_bundle_algo_history() or AutoRunner reads its score.
- CVE-2026-145083High
MONAI through 1.5.2 contains a path traversal vulnerability in download_large_files that allows attackers to write files outside the bundle directory via unvalidated large_files paths. Attackers can distribute a malicious bundle whose large_files.yml uses absolute or ../ paths with attacker-controlled hashes to overwrite files like SSH authorized_keys or cron entries.
Original NVD description (English source)
MONAI before 1.6.0 is vulnerable to OS command injection in the nnUNetV2Runner component (monai.apps.nnunet.nnunetv2_runner). User-controlled values taken from the YAML configuration file (notably dataset_name_or_id) and from CLI/kwargs arguments are concatenated into a command string without quoting or validation and then passed to subprocess with shell=True, so shell metacharacters (e.g., ';' on Linux, '&' on Windows) are interpreted. If a victim loads and processes a crafted configuration file — for example by instantiating nnUNetV2Runner with the malicious YAML and invoking a training/validation job such as train_single_model() — arbitrary commands are executed with the privileges of the user running the job.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

