CVE-2026-133968 - Project MONAI MONAI Label Path Traversal Vulnerability

CVE-2026-133968

MONAI Label - Unauthenticated Arbitrary File Write via the Datastore Image ID

What is MONAI Label?

MONAI Label is an open-source medical image annotation server from Project MONAI, the Medical Open Network for AI, a PyTorch-based healthcare imaging framework originally founded by NVIDIA and King's College London. It implements an active-learning loop: a radiologist or pathologist labels a handful of scans in a viewer, the server trains or fine-tunes a segmentation model on them, and the model then pre-labels the remaining studies so the human only corrects the output. Clients include 3D Slicer, OHIF and QuPath, which talk to the server over a REST API.

That architecture makes a MONAI Label deployment an unusually attractive target. The server sits on research networks at universities, hospitals and imaging labs, it is typically backed by GPU hardware, it holds a datastore of medical imaging studies, and it exists specifically to accept file uploads and to launch training jobs. Many installations are stood up by research groups rather than IT departments, run with authentication left off, and are reachable from the campus network or the internet.

Overview

CVE-2026-133968 is a path traversal in MONAI Label's datastore upload endpoints that lets a remote attacker write a file anywhere the server process can write. The PUT /datastore/image endpoint takes a caller-controlled image query parameter and uses it as the image ID without validation, so a value such as ../../../tmp/x escapes the datastore directory entirely. The outcome is arbitrary file write, and from there remote code execution. NVD rates it 9.8 under CVSS 3.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

What makes this entry notable is how it was found. Amazon Threat Intelligence reported on 2026-11-20 that the flaw was discovered and weaponised as a zero-day not by a human researcher but by AI agents running Cairn, an open-source framework that coordinates large language model agents as automated penetration testers. Amazon assesses with high confidence that it was a zero-day, since no fix, issue or public mention of the bug existed at the time, and attributes the activity to a Chinese-nexus actor with moderate confidence based on the language of the operator's prompts, the time zone in the scripts, and the strategic interest of the targeted universities.

Project MONAI published advisory GHSA-qc22-rmgc-vg94 on 2026-11-18, CVE-2026-133968 was published on 2026-11-20, and the fixed release 0.8.6 reached GitHub and PyPI on 2026-11-22. Early write-ups published before that date correctly reported that no fixed release existed; that is no longer true, and 0.8.6 is the release to install.

Affected Versions

Product Vulnerable Fixed
MONAI Label (monailabel on PyPI) 0.1.0 through 0.8.5 0.8.6, released 2026-11-22
MONAI Label installed from source Any commit before 113527b (2026-10-19) main at or after commit 113527b

The gap matters: 0.8.5 was the current PyPI release from 2024 until 2026-11-22, so essentially every deployed installation that was not tracking git main was vulnerable for the whole of the exploitation window.

Technical Details

Path traversal, CWE-24 in the CVE record and CWE-22 in the vendor advisory, is the class of bug where user-supplied text is pasted into a file path and the .. sequence is allowed to climb out of the directory the application intended to confine it to. Here monailabel/endpoints/datastore.py passed the image value straight through as a filename, and LocalDatastore.add_image() resolved the result with os.path.realpath() without ever checking that the resolved path was still inside the datastore. The file was then written with shutil.copy(). The same pattern existed on PUT /datastore/label, where LocalDatastore.save_label() built its destination from the image ID and the label tag the same way.

Authentication is disabled by default in MONAI Label (MONAI_LABEL_AUTH_ENABLE=False), so in a stock deployment any client that can reach the port can exploit this with a single unauthenticated request. Where authentication is enabled, the low-privilege ANNOTATOR role is enough. Escalating from file write to code execution does not need a memory-corruption primitive: the reported technique was to drop a Python reverse shell into sitecustomize.py, a file the Python interpreter imports automatically at startup, and then call a training endpoint so the server spawns a fresh Python process that executes it.

The fix in pull request 1915 resolves each destination path and verifies it stays inside the datastore image and label directories, and the endpoint now reduces the supplied image ID to its basename, rejecting empty or dot-prefixed values with HTTP 400.

Discovery

The bug was first found in the wild by the attacker's own tooling rather than by a defender. It was subsequently reported to Project MONAI through the AWS vulnerability disclosure programme (@aws-sec-vdp), and the advisory credits garciadias as reporter. Pull request 1915 was opened by garciadias on 2026-10-12, approved by SachidanandAlle on 2026-10-17, and merged by ericspod on 2026-10-19. ericspod published the advisory on 2026-11-18.

Exploitation Context

Amazon dates the campaign to roughly 2026-09-08 through 2026-09-10, about 48 hours, against university IP addresses in East Asia outside mainland China. Visibility into it is unusual: the operator left the Cairn control panel exposed with no authentication, so Amazon could read the prompts and the agents' own output. Per Amazon, "In about 11 minutes, the agents went from mapping the application's API to arbitrarily writing files on the server." A later session reached a root shell on a university server. Amazon reports one confirmed root compromise and infers a second, where a proxy tunnelled into another university running the same software. Observed addresses include 142.4.98.145 and 142.4.107.34.

The agents were not uniformly effective. Reported failures in the same campaign include 148 steps over 16 hours against an exposed Redis host, six hours spent scraping 80 staff names from public pages, and more than 30,000 login attempts against a GPU host, a VPN and a campus website, none of which succeeded. The MONAI Label path was the one that worked.

No exposure counts for internet-facing MONAI Label instances have been published, and no vendor has released file hashes for the payload. Amazon's report does not show that patient data was taken, and clinical systems were not confirmed to have been touched. Reporting on public exploit code is contradictory: no standalone public exploit has been confirmed, though at least one unverified proof-of-concept repository is indexed by exploit aggregators. Given that the fix has been visible in a public pull request since 2026-10-19 and the technique is fully described in the write-ups, assume working exploit code is trivial to reconstruct.

Remediation

  1. Upgrade to MONAI Label 0.8.6 or later, available on PyPI (pip install -U monailabel) and GitHub as of 2026-11-22. The BOD 26-04 deadline is 2026-11-26. If you install from source, confirm you are at or past commit 113527b.
  2. If you cannot upgrade immediately, take the server off any untrusted network. Bind it to localhost or put it behind a VPN or an authenticating reverse proxy; a MONAI Label server should not be directly reachable from the internet in any configuration.
  3. Enable authentication with MONAI_LABEL_AUTH_ENABLE=True. Treat this as damage reduction only, not a fix, because the ANNOTATOR role still reaches the vulnerable endpoints on an unpatched build.
  4. Run the server as an unprivileged user whose write access is limited to the datastore directory, so that a successful traversal cannot reach interpreter startup files or system paths.
  5. Review access logs for PUT requests to /datastore/image and /datastore/label whose image or tag values contain .., encoded traversal sequences, or absolute paths. A single such request is enough to warrant a full investigation.
  6. Hunt for the post-exploitation artefact specifically: look for a sitecustomize.py that you did not create, anywhere on the Python path, along with any other unexpected files under site-packages, and check for outbound connections from the server and unexpected child processes of the MONAI Label or training processes.
  7. If you find evidence of exploitation, assume code execution as the service account and possibly root. Rebuild the host, rotate any credentials and tokens reachable from it, and review access to the imaging datastore as a potential data exposure.

Key Details

PropertyValue
CVE ID CVE-2026-133968
Vendor / Product Project MONAI - MONAI Label
NVD Published2026-11-20
NVD Last Modified2026-11-23
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-24 find similar ↗
CISA KEV Added2026-11-23
CISA KEV Deadline2026-11-26
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 26-04 Deadline: 2026-11-26. Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA's BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA's "Forensics Triage Requirements" (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

Timeline

DateEvent
2026-09-08Start of the roughly 48-hour campaign in which AI agents discovered and exploited the flaw as a zero-day
2026-09-10Amazon Threat Intelligence finds the operator's unauthenticated Cairn control panel exposed and begins reconstructing the activity
2026-10-12Pull request 1915, fix: confine datastore write paths, opened by garciadias
2026-10-19Fix merged to main as commit 113527b
2026-11-18Project MONAI publishes advisory GHSA-qc22-rmgc-vg94
2026-11-20CVE-2026-133968 published; Amazon Threat Intelligence publishes its report
2026-11-22MONAI Label 0.8.6 released on GitHub and PyPI with the fix
2026-11-23Added to CISA Known Exploited Vulnerabilities catalog
2026-11-26CISA BOD 26-04 remediation deadline