Description
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.
Published: 2026-09-27
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

MONAI versions prior to 1.6.0 allow an attacker to inject arbitrary operating‑system commands through the nnUNetV2Runner component. The vulnerability arises because a user‑controlled YAML configuration entry, dataset_name_or_id, and additional command line arguments are concatenated into a shell command string without quoting or validation and then executed with subprocess shell=True. When a malicious configuration file is loaded and a training or validation job is run, any shell metacharacter supplied by the attacker is interpreted by the underlying operating system, allowing execution of arbitrary code with the privileges of the user running the job.

Affected Systems

Affected systems include any installation of Project‑MONAI MONAI software using a version prior to 1.6.0. The vulnerable component is nnUNetV2Runner located in monai.apps.nnunet.nnunetv2_runner. Only versions before 1.6.0 are impacted; later releases contain the fix.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog. The vulnerability requires an attacker to supply a crafted configuration file or manipulated CLI/kwargs arguments, which typically implies access to the local machine or the ability to influence the job configuration. Because the flaw results in a command‑line shell injection, an attacker who can deploy the malicious YAML will be able to execute commands with the job’s user privileges. The attack vector is thus likely local but could be extended if configuration files are obtained by remote code or through insecure file upload mechanisms.

Generated by OpenCVE AI on September 27, 2026 at 04:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Project-MONAI MONAI to version 1.6.0 or newer.
  • Validate YAML configuration files to ensure dataset_name_or_id contains only expected characters or values, and sanitize any user input before it is passed to subprocess calls.
  • Configure job execution to run with the minimal required privileges and disable shell=True in subprocess invocations, or use parameterized commands devoid of shell metacharacter interpretation.

Generated by OpenCVE AI on September 27, 2026 at 04:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 27 Sep 2026 02:00:00 +0000

Type Values Removed Values Added
Description 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.
Title MONAI before 1.6.0 OS Command Injection via dataset_name_or_id
First Time appeared Project-monai
Project-monai monai
Weaknesses CWE-78
CPEs cpe:2.3:a:project-monai:monai:*:*:*:*:*:*:*:*
Vendors & Products Project-monai
Project-monai monai
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Project-monai Monai
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-27T01:28:39.672Z

Reserved: 2026-09-27T00:18:40.971Z

Link: CVE-2026-100844

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-27T02:17:22.993

Modified: 2026-09-27T02:17:22.993

Link: CVE-2026-100844

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-27T04:30:18Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')