CVE-2026-21851
MediumCVSS 5.3Exploitation Probability (EPSS)
Low risk31th percentile - higher than 31% of all known CVEs
Summary
In MONAI (Medical Open Network for AI) versions up to and including 1.5.1, a Path Traversal (Zip Slip) vulnerability exists in the _download_from_ngc_private() function. The function uses zipfile.ZipFile.extractall() without path validation, while other similar download functions in the same codebase properly use the existing safe_extract_member() function. Commit 4014c8475626f20f158921ae0cf98ed259ae4d59 fixes this issue.
Risk Assessment
Arbitrary file write outside the intended directory can lead to overwriting system files or executing malicious code.
Recommendation
Update MONAI to a version containing the fix (commit 4014c8475626f20f158921ae0cf98ed259ae4d59) or later.
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 (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.1, a Path Traversal (Zip Slip) vulnerability exists in MONAI's `_download_from_ngc_private()` function. The function uses `zipfile.ZipFile.extractall()` without path validation, while other similar download functions in the same codebase properly use the existing `safe_extract_member()` function. Commit 4014c8475626f20f158921ae0cf98ed259ae4d59 fixes this issue.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

