MONAI Label Path Traversal Exploited by AI Agents, Hits KEV
Security

MONAI Label Path Traversal Exploited by AI Agents, Hits KEV

CISA added MONAI Label path traversal CVE-2026-133968 to KEV after Amazon saw AI agents exploit the medical imaging tool. Upgrade to 0.8.6 by Nov 26.

monai labelcisa kevai agentspath traversalhealthcare

CISA added CVE-2026-133968, a MONAI Label path traversal flaw, to the Known Exploited Vulnerabilities catalog on November 23, 2026, with a federal fix deadline of November 26. MONAI Label is an open source medical imaging annotation server. Amazon Threat Intelligence reports that autonomous AI agents run by a China-linked operator found and exploited the bug against university servers in September, before any patch existed. Version 0.8.6, released November 22, fixes it. If you run an older server, upgrade, cut its network exposure and check the host for tampering before trusting it again.

What happened

On September 10, 2026, Amazon Threat Intelligence found a publicly reachable server running Cairn, an open source autonomous penetration testing framework, with no authentication on it. The operator's project history was readable by anyone: prompts, agent output and executed scripts. The prompts were written in Simplified Chinese and the script timestamps were set to China Standard Time.

That history described a roughly 48 hour campaign starting September 8 against IP addresses belonging to universities in East Asia outside mainland China. The operator supplied target lists with variations of a single goal, "obtain shell access", and the agents picked their own techniques from there. How Cairn turns a one line goal into hours of adaptive attack activity is worth understanding on its own.

Against one target running MONAI Label, the agents identified the application framework, mapped its API and found an upload endpoint that accepted a filename parameter. They tested that parameter for path traversal and it worked. Amazon says the agents went from mapping the API to writing arbitrary files on the server in about 11 minutes. In a later session they used the same write to place a Python reverse shell in sitecustomize.py, a file the Python interpreter imports at startup, then called a training API endpoint that spawned a fresh Python process. That process ran as root, so the shell did too.

Amazon assesses with high confidence that this was a zero-day: no fix, issue, advisory or vulnerability database entry existed for it at the time. Amazon reported the bug to the maintainers through its vulnerability disclosure program, which is how the GitHub advisory credits the report. The affected universities were not AWS customers, so Amazon worked with a government partner to notify them.

The project published advisory GHSA-qc22-rmgc-vg94 on November 18, 2026. The CVE record went public on November 20, the same day Amazon published its report. MONAI Label 0.8.6 shipped on November 22. CISA added the CVE to KEV on November 23 with a November 26 due date under BOD 26-04, alongside an N-able MailAssure server-side request forgery (CVE-2026-134624). The KEV entry marks forensic triage as required and ransomware use as unknown.

Who is affected

Every MONAI Label release up to and including 0.8.5 is vulnerable. The CVE record and the advisory agree on that range. The project describes the product as a server-client system for AI assisted medical image annotation, used with viewers such as 3D Slicer, OHIF, QuPath and CVAT, with optional DICOMweb connections to a PACS. Typical operators are radiology research groups, hospital AI teams and university labs, often on shared GPU machines.

Two defaults widen the exposure. Authentication is off unless the MONAI_LABEL_AUTH_ENABLE setting is changed to True, so in a stock install any client that can reach the port can call the vulnerable endpoints. The project's README now carries a warning that MONAI Label is not intended to run as an internet-facing application and should only be deployed on a closed, trusted LAN. With authentication enabled, the advisory says the ANNOTATOR role is still enough to exploit the bug, so a stolen or shared annotator login also counts.

The third factor is the service account. The agents got root because the server process was running as root. The same bug on a server running as an unprivileged user with write access limited to the datastore would have had far less reach.

How the path traversal works

The advisory describes two write paths. The PUT /datastore/image endpoint accepts a caller supplied image query parameter and uses it as the image ID without validation. The datastore code appends the file extension, joins the ID onto the datastore image directory and copies the upload to the resulting path. Nothing checked that the resolved path stayed inside the datastore, so an ID containing parent directory segments wrote wherever the process had permission. The PUT /datastore/label endpoint builds its destination from the image ID and a label tag the same way. CISA and the CVE record classify the weakness as CWE-24, a path traversal variant; the GitHub advisory uses the parent class CWE-22. The CVSS 3.1 score is 9.8: network reachable, low complexity, no privileges, no user interaction.

An arbitrary file write is not code execution by itself. The advisory lists the usual routes: overwrite application code, add SSH authorized keys or cron entries. The agents chose a Python-specific route through the interpreter's startup hook and then needed only a legitimate API call to make the server start a new interpreter. That is why the 0.8.6 release notes tell operators of any previously exposed server to review it for unexpected file changes before returning it to service, rather than just upgrading.

The fix in pull request #1915 resolves each destination path and rejects anything outside the datastore image and labels directories. The image endpoint now keeps only the basename of the ID and returns HTTP 400 for empty or dot-prefixed values. The pull request was opened on October 12, 2026, five weeks before the advisory and six weeks before the release. The release also closes a second traversal, with no CVE assigned at the time of writing, in session uploads: PUT /session/ with uncompress enabled extracted tar archives without checking member names, and session IDs were used as paths without validation. Archives containing links or device files are now rejected.

The same framework appears in Gambit Security's September reporting on a separate, financially motivated operator who launched at least 105 attacks and compromised at least 27 companies to varying degrees, according to The Register. Amazon's operator did not succeed everywhere. Sixteen hours and 148 sequential actions against an unauthenticated Redis instance failed. A six hour credential spray of more than 30,000 combinations against a university GPU server, using about 80 real usernames harvested from faculty pages and papers, never found a working login. The MONAI Label server was the softest target on the list, which is the lesson for anyone running research servers outside normal production controls.

What to do now

  1. Find every instance. MONAI Label is installed with pip or run from the projectmonai/monailabel Docker image, and the server listens on port 8000 by default. Researchers often start it on their own GPU workstations next to 3D Slicer or OHIF, so ask the labs and scan research network ranges.
  2. Upgrade to 0.8.6. The release notes give pip install -U monailabel==0.8.6 and docker pull projectmonai/monailabel:0.8.6. Note that 0.8.6 drops Python 3.9 and 3.10 and requires 3.11 or newer; the Docker image moved to Ubuntu 24.04 with Python 3.12.
  3. Inspect before you trust. For any server that was reachable from an untrusted network while on 0.8.5 or older, review it for unexpected file changes before returning it to service. Start with Python startup files such as sitecustomize.py, SSH authorized_keys, cron entries and modified application code, then look for outbound connections the server had no reason to make. Amazon's indicators are 142.4.98.145 and 142.4.107.34 for September 8 to 10. If you find anything, treat the host as a root compromise, rebuild it and rotate every credential it held, including PACS and DICOMweb logins.
  4. Turn authentication on and take the server off untrusted networks. The step by step is in how to secure a MONAI Label server after CVE-2026-133968.
  5. Run it as an unprivileged user whose write access is limited to the datastore, as the advisory recommends.
  6. Federal agencies must complete the KEV required action by November 26, 2026, and the entry requires forensic triage, so document what you checked.

What to watch next

  • A CVE for the second traversal in session uploads, which 0.8.6 fixed without one.
  • Further advisories from the project. The README states that known, unpatched security issues make MONAI Label fragile on untrusted networks, which reads as a signal that more fixes are coming.
  • Attribution. Amazon rates the China-nexus assessment at moderate confidence and names no group. Any public naming or overlap with known actors would change the picture for targeted institutions.
  • More Cairn casework. Amazon, Gambit Security and others have now documented espionage and criminal use of the same framework within one quarter. Expect more, and expect the pattern seen in the Zammad incident where an AI agent rooted a helpdesk in seconds to repeat against other research and open source tools.

Sources