inferwire
/
Cybersecurity·3 min read

Critical MONAI Label Flaw Enables Remote Execution

A critical path traversal flaw in MONAI Label endpoint uploads has been actively exploited in the wild, prompting a CISA remediation order.

TL;DR

  • Project MONAI released version 0.8.6 to patch a critical path traversal vulnerability in MONAI Label that enables remote code execution [^1], [^2].
  • CISA added the flaw to its Known Exploited Vulnerabilities catalog after confirming real-world exploitation starting in September 2026 [^1].

Background

Medical imaging applications rely on specialized software servers to process DICOM images, manage datasets, and assist annotations. MONAI Label provides an open-source server framework for interactive medical image labeling. When servers run with default settings, their API endpoints accept file uploads from client applications over standard network connections. If input validation fails to restrict where files land on disk, malicious requests can traverse directory trees and overwrite system files.

What happened

A critical path traversal vulnerability in MONAI Label versions 0.8.5 and earlier allows unauthenticated remote code execution [^1], [^2], [^3]. Tracked as CVE-2026-133968 and GHSA-qc22-rmgc-vg94, the vulnerability carries a CVSS 3.1 base score of 9.8 [^1], [^3]. The issue originates in the PUT /datastore/image endpoint, which accepts an unvalidated image parameter, as well as the PUT /datastore/label endpoint [^1], [^2], [^3].

When processing requests, functions in LocalDatastore concatenate user-supplied image IDs and label tags directly into filesystem paths and write uploaded files using shutil.copy() [^3]. Because the server fails to verify that resolved paths remain inside the designated datastore directories, an attacker can submit path traversal sequences such as ../../../tmp/x [^3]. This allows arbitrary file writes anywhere the server process has permission to write, enabling attackers to execute remote code by overwriting application files or altering .ssh/authorized_keys and cron jobs [^3].

Authentication in MONAI Label is disabled by default via MONAI_LABEL_AUTH_ENABLE=False, allowing any network client to reach the vulnerable endpoints [^2], [^3]. Active exploitation in the wild began in September 2026 [^1]. In response, CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on November 23, 2026, ordering U.S. federal agencies to apply mitigations by November 26, 2026 [^1]. Developer R. Garcia-Dias submitted fix #1915 to normalize image IDs, strip directory components, and confine path destinations [^4], [^3]. Project MONAI subsequently released MONAI Label version 0.8.6 on November 22, 2026 [^2].

Why it matters

The active exploitation of MONAI Label underscores the risks of exposing specialized medical AI infrastructure directly to network traffic [^1], [^2]. Because the application ships with authentication disabled by default, exposed servers offer no boundary against arbitrary remote requests [^2], [^3]. Even when administrators enable authentication, users with basic ANNOTATOR roles remain capable of triggering the file write vulnerability on unpatched releases [^3].

Furthermore, patching MONAI Label 0.8.6 requires operational adjustments [^2]. The new release drops support for Python 3.9 and 3.10, requiring deployments to run on Python 3.11 or newer [^2]. For teams unable to immediately upgrade, security teams must enforce workarounds including enabling authentication, restricting server network access, running the process under an unprivileged user, and conducting forensic triages to verify that exposed systems were not compromised prior to patching [^1], [^2], [^3].

Practical example

Say Elena manages a machine learning research infrastructure for a healthcare institution running a MONAI Label server on an internal subnet.

If her installation runs a version prior to 0.8.6 with default configuration settings, authentication remains disabled (MONAI_LABEL_AUTH_ENABLE=False) [^2], [^3]. An attacker who gains network access to the server can issue an unauthenticated PUT /datastore/image request containing path traversal sequences like ../../../tmp/x in the image parameter [^1], [^3]. The LocalDatastore.add_image() function joins this input to the datastore path and copies the payload using shutil.copy(), overwriting system files or adding entry keys to .ssh/authorized_keys [^3].

To secure her infrastructure, Elena must upgrade the server to MONAI Label 0.8.6 [^1], [^2]. She ensures her environment runs Python 3.11 or newer to meet the updated runtime requirements [^2]. If immediate upgrading is delayed, she enables authentication, restricts network exposure, runs the service as an unprivileged user, and inspects system logs for unexpected file modifications per CISA triage guidance [^1], [^2].

Related gear

This book provides essential background on identifying and preventing path traversal flaws and input validation vulnerabilities in web endpoints.

AdvertisementAmazon

The Web Application Hacker's Handbook: Finding and Exploiting Security Vulnerabilities

Sources

  1. [1]NVD — CVE-2026-133968
  2. [2]GitHub — Release MONAI Label 0.8.6 · Project-MONAI/MONAILabel
  3. [3]GitHub — Path traversal in datastore upload endpoints allows arbitrary file write
  4. [4]GitHub — fix: confine datastore write paths by garciadias · Pull Request #1915 · Project-MONAI/MONAILabel