CVE-2026-118683

MONAI 1.2.0 before 1.6.1 Code Execution via bundle configs/logging.conf

Published Oct 28, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

MONAI versions 1.2.0 through 1.6.1 contain a flaw that lets an attacker trigger arbitrary Python code during bundle loading. The vulnerability lies in ConfigWorkflow.__init__, which passes the bundle’s configs/logging.conf to logging.config.fileConfig; that function evals the handler class and args fields. If an attacker supplies a malicious bundle, the logging configuration is executed immediately when the victim constructs the workflow, resulting in full code execution within the process. The weakness is a classic code injection flaw with CWE‑94, and the impact is complete compromise of confidentiality, integrity, and availability.

Affected Systems

The affected product is MONAI from Project‑MONAI. All deployments using MONAI 1.2.0 up to and including 1.6.1 are vulnerable, regardless of operating system or hosting environment. No specific platform scope is given; the issue applies to every install that can load third‑party bundles.

Risk and Exploitability

The flaw has a CVSS score of 8.6, indicating high severity. No EPSS score is reported, so the current exploitation probability cannot be quantified, but the existence of a remote code execution vector and the lack of mitigation on vulnerable builds suggests a significant risk. The vulnerability is not listed in the CISA KEV catalog, but that does not diminish the potential for abuse if attackers target installations that rely on user‑supplied bundles.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the MONAI patch that disables eval in logging configuration and deploy a version 1.6.1 or later
  • Configure the system to reject or sanitize bundle configs/logging.conf before they are processed, ensuring that handler classes and arguments cannot be executed
  • Limit bundle ingestion to trusted sources and enforce strict authentication and integrity verification on any bundles that are loaded

Generated by OpenCVE AI on October 28, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title MONAI 1.2.0 before 1.6.1 Code Execution via bundle configs/logging.conf
First Time appeared Project-monai
Project-monai monai
Weaknesses CWE-94
CPEs cpe:2.3:a:project-monai:monai:*:*:*:*:*:*:*:*
Vendors & Products Project-monai
Project-monai monai
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 8:54 PM
Reserved
Oct 28, 2026, 5:28 PM
Status
Deferred
Published
Oct 28, 2026, 7:17 PM
Modified
Oct 29, 2026, 9:17 PM