Advisory

PYSEC-2026-4019

Also known as: CVE-2026-100844, GHSA-rghg-q7wp-9767

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-09-27 02:17 UTC
Modified
2026-10-01 09:15 UTC

Affected packages and fixes

monai

PyPI · All systems

Affected

  • introduced 0, fixed 1.6.0 (ecosystem)

Fixed versions

1.6.0

Fix

  • Fixed version 1.6.0
    pip install --upgrade monai==1.6.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences