MONAI vulnerabilities
26 known CVE vulnerabilities in MONAI, translated and rated.
- 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.
- CVE-2026-119578High
MONAI from 1.6.0 before 1.6.1 contains a remote code execution vulnerability in Auto3DSeg algo_from_json(). Attackers can run Python code via a crafted algo_object.json in a work directory.
- CVE-2026-118684Medium
MONAI before 1.6.1 contains an insufficient integrity verification vulnerability in check_hash() that silently returns True when hash_val is None, with MD5 as the default hash type. Attackers performing man-in-the-middle or registry compromise can substitute bundles, datasets, or model archives downloaded without hashes, enabling malicious file delivery and potential code execution.
- CVE-2026-118683High
MONAI from 1.2.0 before 1.6.1 contains a remote code execution vulnerability in ConfigWorkflow.__init__, which passes a bundle's configs/logging.conf to logging.config.fileConfig that eval()s handler class and args fields. Attackers can publish a malicious bundle whose logging.conf runs arbitrary Python at workflow construction when a victim loads or runs the bundle.
- CVE-2026-109361High
MONAI 1.2.0 before 1.6.1 contains an insecure deserialization vulnerability in nnUNetV2Runner that unpickles the postprocessing_file path read from inference_information.json without confining it to the results directory. Attackers who can modify inference_information.json can point it at a malicious pickle elsewhere on the filesystem to execute code when predict_ensemble_postprocessing runs.
- CVE-2026-109360High
MONAI 0.4.0 before 1.6.1 contains a remote code execution vulnerability that allows on-path attackers to execute code by tampering with SENet pretrained weights fetched over plaintext HTTP. Attackers can substitute a crafted .pth file that load_state_dict_from_url unpickles without weights_only=True, executing code when SEResNet50 or other SENet models are constructed with pretrained=True.
- CVE-2026-100846High
MONAI before 1.5.2 contains a deserialization of untrusted data vulnerability in the algo_from_pickle function in monai/auto3dseg/utils.py. The function reads a .pkl file and passes its contents to pickle.loads without validating the data source or content. If an application invokes algo_from_pickle on an attacker-supplied pickle file, an object defining __reduce__ is executed during deserialization, resulting in arbitrary code execution.
- CVE-2026-100845High
MONAI before 1.6.0 contains an unsafe deserialization vulnerability in the NumpyReader class that unconditionally uses numpy.load with allow_pickle=True when loading .npy and .npz files. Attackers can craft malicious .npy files with pickle payloads that execute arbitrary code when loaded through MONAI's standard data pipeline.
- CVE-2026-100844High
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.
- CVE-2026-100843High
MONAI versions before 1.6.0 contain a remote code execution vulnerability in the algo_from_pickle() function due to unsafe pickle.loads() deserialization in monai/auto3dseg/utils.py. Attackers can craft malicious pickle files that execute arbitrary system commands when deserialized by the vulnerable function.
- CVE-2026-100842High
MONAI through 1.6.0 contains an eval injection vulnerability in _get_fake_spatial_shape() in monai/bundle/scripts.py. The function validates shape expressions with a helper that walks the AST and only collects ast.Name nodes, rejecting any name other than 'p' or 'n', before passing the string to eval(). Expressions built solely from constants and attribute, subscript, or call nodes contain no ast.Name nodes and bypass the allowlist. An attacker who can influence a bundle's metadata can escape the eval sandbox and achieve code execution.
- CVE-2026-100841High
In MONAI 1.6.0, PersistentDataset explicitly rejects the combination track_meta=True with weights_only=True, forcing users who cache MetaTensors to run torch.load(hashfile, weights_only=False). Related cache helpers also call pickle.loads on cached content and use hashlib.md5 for cache keys. A local user with write access to a shared cache directory can place a malicious pickle file that is deserialized the next time another user's MONAI pipeline reads the cache, resulting in arbitrary code execution in that user's context.
- CVE-2026-100840High
MONAI through 1.6.0 contains a remote code execution vulnerability in the bundle configuration engine that resolves _target_ values to arbitrary importable callables without an allow list and passes $ expressions to Python eval(). Attackers can publish a malicious bundle with crafted configuration containing arbitrary code that executes when a victim loads the bundle using monai.bundle.load() or monai.bundle.run().
- CVE-2026-21851Medium
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.
- CVE-2025-58757High
MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.0, the `pickle_operations` function in `monai/data/utils.py` automatically handles dictionary key-value pairs ending with a specific suffix and deserializes them using `pickle.loads()`. This function also lacks any security measures. The deserialization may lead to code execution. As of time of publication, no known fixed versions are available.
- CVE-2025-58756High
MONAI (Medical Open Network for AI) is an AI toolkit for health care imaging. In versions up to and including 1.5.0, in `model_dict = torch.load(full_path, map_location=torch.device(device), weights_only=True)` in monai/bundle/scripts.py, `weights_only=True` is loaded securely. However, insecure loading methods still exist elsewhere in the project, such as when loading checkpoints. Loading a checkpoint containing malicious content can trigger a deserialization vulnerability, leading to code execution. As of time of publication, no known fixed versions are available.
- CVE-2025-58755High
In the MONAI library, the extractall function is used directly to process compressed files. In versions up to and including 1.5.0, a malicious ZIP file can overwrite system files, and the project also allows downloading ZIP content via a link.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

