CVE-2026-145608 in MONAIinfo

Summary

by MITRE • 12/06/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 12/06/2026

The vulnerability identified within MONAI versions prior to 1.6.2 represents a critical server-side request forgery and remote code execution risk inherent in how configuration files are processed by the Auto3DSeg module, specifically through its BundleGen component. This flaw stems from an improper neutralization of special elements used in software interfaces, commonly categorized under CWE-94 as Improper Control of Generation of Code or Script. The core technical issue lies in the parsing mechanism utilized by ConfigParser when handling input YAML files consumed by AutoRunner or passed directly to the BundleGen API and Command Line Interface. Instead of strictly validating inputs against a whitelist of allowed parameters, the system allows for dynamic evaluation of user-supplied data structures during configuration loading.

Attackers can exploit this weakness by crafting malicious algos dictionaries that contain specially formatted strings designed to trigger unintended code execution paths within the Python runtime environment. Specifically, the vulnerability permits the injection of expressions prefixed with dollar signs or the specification of arbitrary target directives in an input.yaml file. When these crafted inputs are processed, they interact directly with internal functions such as eval() and pydoc.locate(). The use of eval() is particularly dangerous as it interprets strings as Python code, allowing for full execution capabilities if malicious payloads are embedded within the configuration parameters. Similarly, pydoc.locate() can be manipulated to import arbitrary modules or access sensitive objects within the MONAI process space, effectively bypassing standard security boundaries and granting the attacker control over the underlying system processes.

The operational impact of this vulnerability is severe, as it enables remote code execution with the privileges of the user running the MONAI application. In a typical machine learning workflow involving Auto3DSeg, users often submit configuration files to automate model training or segmentation tasks. If an attacker can influence these configurations, either through direct API interaction or by tricking a system administrator into processing a malicious file, they gain the ability to execute arbitrary Python code on the host machine. This could lead to data exfiltration, modification of trained models, installation of backdoors, or complete compromise of the infrastructure hosting the deep learning workloads. The attack vector is classified under MITRE ATT&CK technique T1059 as Command and Scripting Interpreter, specifically targeting Python execution environments, which highlights the direct manipulation of system commands through scripting languages.

To mitigate this risk, organizations must immediately upgrade MONAI to version 1.6.2 or later where these parsing vulnerabilities have been addressed by developers who likely implemented stricter input validation and removed unsafe evaluation methods from the configuration pipeline. For systems that cannot be upgraded instantly, defensive measures should include implementing strict allow-lists for all parameters passed through BundleGen APIs and CLI tools. Additionally, running MONAI processes in isolated environments with minimal privileges can limit the blast radius of a successful exploitation attempt. It is also advisable to audit any automated pipelines that accept external configuration inputs to ensure they do not rely on dynamic code evaluation mechanisms without rigorous sanitization checks.

Responsible

VulnCheck

Reservation

12/05/2026

Disclosure

12/06/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!