Back to Articles
critical CVE-2026-133968

CRITICAL: MONAI Label Zero-Day Exploited by China-Linked AI Agents

Suspected China-linked operators used autonomous Cairn AI agents to discover and exploit CVE-2026-133968, a CVSS 9.8 unauthenticated path traversal in MONAI Label through 0.8.5, gaining root on a university server. Version 0.8.6 now ships the fix, so upgrade, enable authentication, and hunt for planted sitecustomize.py files.

By Danny Mercer, CISSP — Lead Security Analyst • Nov 22, 2026 •1 views
Is your business exposed? Our McKinney-based security team can assess your risk for free.
Share:

For years the security industry has been arguing about when attackers would start letting AI agents do the hacking for them. Amazon just ended the argument. Its threat intelligence team says a suspected China-linked operator pointed an autonomous agent framework at a list of university IP addresses, gave it the instruction "obtain shell access," and walked away. Somewhere in that run the agents found a previously unknown flaw in MONAI Label, an open-source medical imaging server, and turned it into a root shell. Nobody wrote an exploit by hand. Nobody picked the next step. The machines did the work, and the zero-day they found is now tracked as CVE-2026-133968 with a CVSS score of 9.8.

That combination is what makes this one worth your morning coffee. The vulnerability itself is a garden-variety path traversal, the kind of bug that would have looked at home in a 2006 web app audit. What's new is how it was found, how fast it was weaponized, and the fact that the server it lives on is precisely the type of thing research teams spin up quickly, expose to a network, and then forget about.

What MONAI Label is and why the bug is so bad

MONAI Label is a server that medical imaging researchers use to annotate scans and train imaging models. It is a separate project from the broader MONAI framework, and it shows up in university labs, hospital research groups, and AI startups working on radiology tooling. It is also, by default, wide open. Authentication ships disabled, with the MONAI_LABEL_AUTH_ENABLE setting left at False, so anyone who can reach the port can talk to the API.

The flaw sits in the PUT /datastore/image endpoint. That endpoint accepts a caller-controlled image query parameter and uses it directly as the image ID. The LocalDatastore.add_image() function tacks on a file extension, joins the result onto the datastore directory, and writes the uploaded file there with shutil.copy(). At no point does the code check whether the resolved path still lives inside the datastore. Feed it something like ../../../tmp/x and the server cheerfully writes your file wherever its process account has permission to write. The save_label() function behind PUT /datastore/label builds its destination the same way, so there are two doors into the same room.

The CVE record describes it as directory traversal with resultant remote code execution, classified as CWE-24, and scores it AV:N/AC:L/PR:N/UI:N for that 9.8 rating. Every MONAI Label release through version 0.8.5 is affected. Even with authentication turned on, the project's own GitHub advisory notes that the ANNOTATOR role is enough to pull it off, which matters in shared research environments where annotator accounts get handed out generously.

An arbitrary file write is rarely the end of the story. Overwrite application code, drop an entry into authorized_keys, plant a cron job, or poison a Python startup file and you have code execution. The attackers in this case went with the last option, and it was an elegant choice.

How the agents pulled it off

Amazon only knows any of this because the operator made a rookie mistake. On September 10, Amazon Threat Intelligence found a publicly reachable instance of Cairn, an open-source autonomous penetration testing framework, running with no authentication at all. The irony of an AI hacking platform getting caught because its owner skipped the login screen is not lost on anyone. The exposed panel revealed the project configurations, the operator's prompts, and the full run history of the agents, which let investigators reconstruct the campaign in detail.

The operation ran for roughly 48 hours starting September 8 and targeted universities in East Asia outside mainland China. Much of it failed. Against one hardened Redis instance, the agents spent about 16 hours grinding through 148 sequential actions, trying replication abuse, Lua sandbox escapes, config file writes, memory corruption, and even a Log4Shell attempt against a neighboring service. When that went nowhere, they used a server-side request forgery bug in a co-located Qdrant instance to map the internal Docker network and then sprayed credentials at PostgreSQL and SSH. Another session spent more than six hours building a list of about 80 real usernames from faculty directories, lab pages, archived sites, and academic papers before testing over 30,000 credential combinations across SSH, a VPN, a NAS, an admin dashboard, and the campus portal. None of it worked, but nothing in that log suggests the agents ever got tired or bored, which is more than most of us can say about our own pentest engagements.

The medical imaging target went differently. The agents fingerprinted the application framework, mapped its API, noticed an upload endpoint with a filename parameter, and tested it for traversal. It was vulnerable. Amazon says the agents went from mapping the API to writing arbitrary files on the server in about 11 minutes.

The root shell came in a later session. The agents used the traversal to write a Python reverse shell into sitecustomize.py, a file the Python interpreter imports automatically every time it starts. Then they called a training API endpoint, which spawned a fresh Python process. That process loaded the poisoned file and phoned home as root. Amazon assessed with high confidence that the bug was a true zero-day, since no fix, issue, advisory, or prior mention existed anywhere for the project at the time.

Things escalated from there. In another session the human operator stepped in and handed the agents a proxy tunnel into a second university network. The server on the other end of that tunnel was running the same vulnerable software, and Amazon infers the actor had already used the zero-day to compromise it. The agents were then told to pivot to other machines inside that network.

Attribution is held at moderate confidence. The prompts were written in Simplified Chinese, the script timestamps were set to China Standard Time, and the targets fit the profile of institutions likely to be of strategic interest to China. Amazon did not tie the activity to a named group or to a government, and it is worth being honest about the limits here. The account comes from Amazon's own reconstruction, and it does not show that patient scans or clinical systems were touched. Gambit Security has separately documented a financially motivated crew using Cairn against online retailers, so this tooling is clearly spreading across both espionage and criminal operations.

Who is exposed

If you support a university, a hospital with a research arm, a medical device company, or any startup building imaging AI, assume someone in that organization has run MONAI Label at some point. These servers tend to get stood up by a grad student or a data scientist on a GPU box, bound to all interfaces so collaborators can reach them, and left running long after the project wraps. That is shadow AI: AI software running on your network that IT never approved or tracked, and an AI security assessment is how you find it. They often run as root because that was the fastest way to get CUDA working. That deployment pattern is exactly the one that turns a file write into a full system takeover. If you are not sure which of your servers answer from the internet, a vulnerability scan of your external addresses will give you that list.

Whether a given MONAI Label install yields root depends on the service account and what it can write, so not every compromise will look like Amazon's. But "it depends on how it was configured" has never been a comforting sentence when the default configuration is no authentication.

What to do right now

Here is the good news that most of the coverage has not caught up to yet. When the GitHub advisory went live it still listed no patched version, and the latest release on PyPI was version 0.8.5 from 2024, but that changed overnight. MONAI Label 0.8.6 landed on PyPI early on November 22, and I pulled the package apart to confirm it contains the fix from pull request 1915, and it does. The datastore code now resolves the destination path and rejects anything outside the image and label directories, and the upload endpoint strips the image ID down to its basename and returns HTTP 400 for empty or dot-prefixed IDs. Upgrade to 0.8.6 with pip and verify the version afterward, because a lot of these servers live in forgotten virtual environments that nobody remembers activating.

If you cannot upgrade today, the workarounds from the advisory are straightforward. Set MONAI_LABEL_AUTH_ENABLE to True and stop handing out the ANNOTATOR role to people you do not trust. Pull the server off any network you do not control, and use real firewall rules rather than an obscure port number and good intentions. Run the process under an unprivileged account whose write access stops at the datastore directory. If you build from source, confirm your tree includes the October 19 fix before calling it patched, since a merged pull request and an installed package are two different things.

For detection, start with the attack path Amazon described. Hunt for sitecustomize.py or usercustomize.py files in site-packages directories and anywhere else on the Python path, especially ones modified recently or containing socket or subprocess calls. Look through MONAI Label access logs for PUT requests to /datastore/image or /datastore/label where the image parameter contains dot-dot sequences or encoded slashes. Review training jobs that nobody on the research team remembers starting. Check outbound connections from GPU and research hosts, since reverse shells from a box that normally only talks to a storage array stand out quickly. Amazon also published two IP addresses tied to the September activity, 142.4.98.145 and 142.4.107.34, which are worth sweeping your firewall and proxy logs for even though they are now a couple of months stale. If you find a tampered startup file, take a copy of the server before you clean it and get a compromise assessment, so you know what else the attacker touched.

The bigger lesson is about tempo. An agent that maps an API and lands a file write in 11 minutes is faster than most SOCs can triage a single alert, and the failed Redis campaign showed these tools will keep swinging for 16 hours straight without a coffee break. Defenders need high-confidence detections wired to automated containment, with humans reviewing outcomes rather than approving every step. If nobody watches your logs overnight, a managed SOC can watch them around the clock. If your response plan still assumes an attacker who sleeps, it is time to update the plan.

If an IT provider manages your systems

If your organization does imaging research or AI work, someone may have set up a MONAI Label server that nobody tracks. Attackers used this flaw, CVE-2026-133968, as a zero-day to get root access, and the software ships with login turned off.

  • Do we run MONAI Label anywhere, including GPU machines, and is every copy on version 0.8.6?
  • If a server can't be upgraded yet, is authentication turned on, and does it run under a limited account instead of root?
  • Have you checked those servers for unexpected sitecustomize.py files and for connections to 142.4.98.145 or 142.4.107.34?

A good answer names the servers they found, the version each one runs and what the logs showed. If the answer is a shrug, or they find a tampered startup file or strange outbound traffic, bring in incident response quickly.

If you are an IT provider yourself, see how we partner with MSPs.

References

Happening right now?

Business email taken over, or a payment sent to the wrong account?

Call us now. The first hours matter most: your bank may still be able to recall the payment, and whoever is in the mailbox keeps access until it is locked down. We handle the lockout and help trace the payment.

Not an emergency? Get a free security assessment instead.