# PYSEC-2026-4019: MONAI before 1.6.0 is vulnerable to OS command injection in the nnUNetV2Runner component (monai.apps.nnunet.nnunetv2\_runner)

- Database: PyPA
- Published: 2026-09-27
- Modified: 2026-10-01

## Tracked as

- [CVE-2026-100844](https://cve.now/CVE-2026-100844.md): MONAI before 1.6.0 OS Command Injection via dataset\_name\_or\_id

## Also published as

- [GHSA-RGHG-Q7WP-9767](https://cve.now/GHSA-RGHG-Q7WP-9767.md) (GitHub)

## Affected versions

- monai (PyPI): fixed in 1.6.0

## 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.

## References

- https://www.vulncheck.com/advisories/monai-before-1.6.0-os-command-injection-via-dataset-name-or-id
- https://github.com/Project-MONAI/MONAI/security/advisories/GHSA-rghg-q7wp-9767

Page: https://cve.now/PYSEC-2026-4019

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
