MONAI Label CVE-2026-133968: the zero-day behind Amazon’s Cairn AI agent report

MONAI Label CVE-2026-133968: the zero-day behind Amazon’s Cairn AI agent report

First written November 21, 2026. Updated December 3, 2026: the flaw now has a CVE (CVE-2026-133968, CVSS 9.8), a fixed release (0.8.6), a CISA KEV entry and a second, unrelated exploitation report. See “Update, December 3” below.

About eleven minutes. That is how long Amazon says it took a set of AI agents, given a list of IP addresses and the goal “obtain shell access”, to go from mapping an unfamiliar medical imaging server’s API to writing arbitrary files on it. Amazon is highly confident nobody had found the bug before.

Amazon Threat Intelligence published the story on November 20, 2026, after it found a publicly hosted, unauthenticated instance of the attacker’s agent framework, Cairn. Amazon doesn’t name the software. The CVE record and the maintainers do: it is MONAI Label, an open-source tool for annotating medical images and training segmentation models, and the bug is a path traversal in its datastore upload endpoint, CVE-2026-133968 (GitHub advisory GHSA-qc22-rmgc-vg94).

Severity: critical. CVSS 9.8, no authentication needed in the default configuration, exploited in the wild since September 2026, and in CISA’s Known Exploited Vulnerabilities catalog since November 23. Version 0.8.6 fixes it.

At a glance

  • CVE: CVE-2026-133968, published November 20, 2026. Same flaw as GitHub advisory GHSA-qc22-rmgc-vg94 (November 18), per the maintainers’ 0.8.6 release notes. CWE-24 / CWE-22.
  • CVSS: 9.8 (3.1, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), assigned by MITRE as CNA.
  • Affected: monailabel (pip) before 0.8.6. Endpoints PUT /datastore/image and PUT /datastore/label.
  • Auth needed: none by default. With auth on, the ANNOTATOR role is enough.
  • Exploitation: Amazon reports a zero-day exploited during a Cairn campaign that began September 8, 2026 and ran about 48 hours; it doesn’t date the exploit session itself. Previdian reports a separate operation against its honeypot on November 26. In CISA KEV since November 23.
  • Patch: 0.8.6, released November 22, 2026. I’d go to 0.8.8 (November 25), which also fixes later critical bugs.
  • Who should care: anyone running MONAI Label or university GPU and ML lab infrastructure.

Update, December 3: a CVE, a release and a second operation

MITRE published CVE-2026-133968 on November 20 (I missed it in my first version), describing a traversal through the image parameter of PUT /datastore/image, “as exploited in the wild starting in September 2026”. The maintainers shipped 0.8.6 on November 22 and their release notes list the CVE and GHSA-qc22-rmgc-vg94 as one issue, so my earlier “likely MONAI Label” hedge is gone. CISA added the CVE to KEV on November 23.

Then on November 26, Previdian’s MONAI Label honeypot in Germany took 454 HTTP requests from one IP over nearly four hours and ended with root-level Python code execution inside the honeypot container. Previdian links the operation to ARTEX, another agentic offensive framework, with moderate confidence, and says it has not established any connection to the operators in Amazon’s report. I cover that operation, its indicators and the rules for it in my ARTEX analysis and its detection post.

One more thing: 0.8.7 and 0.8.8, both released November 25, fix further critical remote code execution bugs, one of them reachable through training task requests (/train).

What we know

On September 10, 2026, Amazon found a server hosting Cairn, an open-source framework that coordinates multiple AI agents, running without authentication, so the operator’s prompts and the agents’ output were readable. Citing Simplified Chinese prompts and China Standard Time timestamps, Amazon attributes the activity to a Chinese-nexus actor at moderate confidence.

The campaign began September 8 and lasted roughly 48 hours, aimed at universities in East Asia outside mainland China. Most of it failed: about 16 hours and 148 actions against an unauthenticated Redis server, and more than 30,000 credential combinations against a GPU server, got nowhere.

The medical imaging server was different. Amazon writes that the agents identified the framework, mapped its API, found an upload endpoint with a filename-style parameter, tested it for path traversal and got arbitrary file write in about 11 minutes. In a later session they used the bug to drop a Python reverse shell into sitecustomize.py, then hit a training API endpoint to spawn a fresh Python process. The shell came back as root.

Then a human handed the agents a proxy into a second university network, whose server ran the same software; Amazon infers the actor had used the zero-day to compromise it.

Amazon’s post still says only “an open-source medical imaging AI application”. The name comes from the advisory, first reported by aws-sec-vdp (which appears to be Amazon’s disclosure program), and from the CVE record, whose NVD entry cites Amazon’s post.

How it works

The root cause is about as old as web servers. PUT /datastore/image takes an image query parameter and uses it, unvalidated, as the image ID. LocalDatastore.add_image() appends an extension, joins the ID onto the datastore’s image directory and copies the uploaded bytes there. Nothing checks that the result is still inside the datastore, so ../ sequences walk out of it. save_label(), behind PUT /datastore/label, builds its destination from the image ID and the label tag the same way.

The advisory lists the usual routes from file write to code execution (application code, SSH keys, cron). The agents picked a quieter one. Python’s site module imports a module called sitecustomize at interpreter startup, before any user code runs. Drop that file on the interpreter’s search path and every new Python process runs it. MONAI Label starts new Python processes when you ask it to train a model, so one API call turns a written file into a running payload.

Four-step attack chain for CVE-2026-133968 as Amazon describes it: agents map the application's API, abuse the datastore upload path traversal, plant a reverse shell in sitecustomize.py, then trigger training to get a root shell and pivot.
How the Cairn agents went from API mapping to a root shell, per Amazon Threat Intelligence. Amazon doesn’t name the app; the CVE record and advisory do.

The defaults make exposure easy: in the source I checked (0.8.5 and main), authentication is off unless you set MONAI_LABEL_AUTH_ENABLE, and monailabel start_server binds to 0.0.0.0 on port 8000. A process running as root can write anywhere. Run as a user limited to the datastore, the same bug is far less useful.

The fix in PR #1915 resolves each destination with realpath, refuses writes outside the datastore and keeps only the basename of a supplied ID.

From fix to release

PR #1915 was merged into main on October 19. The advisory went public on November 18 saying the fix “will be included in the next MONAI Label release”, and on November 21 PyPI still offered only 0.8.5 from November 2024. Version 0.8.6 reached PyPI on November 22, a month after the merge. It requires Python 3.11 or newer, so older lab environments may need a rebuild.

Timeline from the September 8, 2026 campaign start through the October 19 fix, the November 18 advisory, the November 20 CVE, the November 22 0.8.6 release, the November 23 CISA KEV entry and Previdian's November 26 honeypot exploitation.
Campaign, fix, disclosure and release dates, plus the exploitation Previdian saw after disclosure.

Who is affected and how badly

The install base is small, mostly research labs, and I have no source for how many instances face the internet. But its users rarely have a security team watching: a researcher spins it up on a lab GPU box, leaves the defaults and gets back to work.

Those boxes hold imaging datasets (possibly patient data), model weights and often storage credentials, and Amazon’s account shows a compromised one used as a tunnel into a university network. The annotation server is a door, not the prize. And two agent frameworks, Cairn per Amazon and ARTEX per Previdian (moderate confidence), have now gone after this one product within three months.

What to do now

  1. Find your instances: monailabel processes and port 8000 listeners on lab and GPU hosts. Ask research groups directly.
  2. Upgrade to 0.8.6 or later. I’d go straight to 0.8.8: 0.8.7 and 0.8.8 fix further critical RCE bugs, including a client-supplied bundle_path on task requests such as /train (GHSA-j5c7-p3x5-gw2x).
  3. Take servers off untrusted networks: bind to an internal address, or put them behind a VPN or authenticating reverse proxy.
  4. Turn on authentication with MONAI_LABEL_AUTH_ENABLE=True (it needs an identity provider realm in MONAI_LABEL_AUTH_REALM_URI), and give the ANNOTATOR role only to people you trust.
  5. Stop running it as root; use an account that can write only to the datastore.
  6. Check whether you were already hit. The 0.8.6 release notes ask anyone whose 0.8.5 or older server was reachable from an untrusted network to review it for unexpected file changes first.

Detection and monitoring

You can catch this at three points: the traversal request, the startup hook landing on disk, and the shell after the training call. MONAI Label’s access log is opt-in (--access_log), so the web rule needs that flag or a reverse proxy. The host rules need Linux file and process telemetry, which in my experience lab GPU boxes rarely have. The ATT&CK IDs are my mapping, not the sources’.

RuleCategoryLog sourceATT&CKLevel
Datastore upload with traversal in image or tag (needs access log or proxy)Web/AppwebserverT1190High
sitecustomize.py or usercustomize.py createdLinuxlinux / file_eventT1546.018High
Shell or network tool spawned by MONAI Label processesLinuxlinux / process_creationT1059.004High
Python writes authorized_keys or cron filesLinuxlinux / file_eventT1098.004, T1053.003Medium
Traffic with the IPs seen in Amazon’s recordsNetworkfirewallnone (role unknown)Medium

I’d turn on the startup hook rule first, because it covers the step Amazon saw and doesn’t care how the file got there. Python imports sitecustomize.py at every interpreter start, and in my experience few hosts have one, so the rule alerts on any process creating or overwriting a file of that name, minus system package managers. It isn’t MONAI-specific, which is a feature.

title: Python Startup Hook Sitecustomize Or Usercustomize Created On Linux
id: c473ee4e-df72-4d6d-8b73-d4604dcacadc
status: test
description: |
    Detects creation or overwrite of sitecustomize.py or usercustomize.py, which Python imports
    automatically at interpreter startup. Amazon reports the actor wrote a Python reverse shell to
    sitecustomize.py through the file-write bug, then made the server start a new Python process
    to run it. In my experience such a file is uncommon, so a new one is worth a look on any host.
references:
    - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
    - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
    - https://nvd.nist.gov/vuln/detail/CVE-2026-133968
    - https://docs.python.org/3/library/site.html
    - https://attack.mitre.org/techniques/T1546/018/
    - https://netsec101.com/?p=382
author: netsec101.com
date: 2026-11-21
modified: 2026-12-01
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1546.018
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|endswith:
            - '/sitecustomize.py'
            - '/usercustomize.py'
    filter_main_package_managers:
        Image|endswith:
            - '/dpkg'
            - '/apt'
            - '/apt-get'
            - '/rpm'
            - '/dnf'
            - '/yum'
            - '/zypper'
            - '/conda'
            - '/mamba'
            - '/micromamba'
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Distribution packages that may ship a sitecustomize.py with the system Python, when written by a tool not in the filter list
    - pip or Poetry installing a package that provides sitecustomize.py; pip runs as the python interpreter, so it cannot be filtered on Image. Baseline per host
    - Coverage and profiling tools that may drop a sitecustomize.py on CI runners
level: high

Retro-hunt from September 1, 2026 on every MONAI Label host for sitecustomize.py, usercustomize.py or new .pth files, and changes to authorized_keys and crontabs. Amazon lists two IPs, 142[.]4.98.145 and 142[.]4.107.34, in records dated September 8 to 10, without saying what role they played; a hit is a lead, and I’d stop alerting on them after a few months.

I wrote up all five rules, with tuning notes and ATT&CK coverage, in a separate detection post. The YAML lives in my Detection Rules repo.

My take

The bug is boring: a user-supplied ID joined onto a directory without checking where it lands. What isn’t boring is who found it: an open-source agent framework, in about 11 minutes, while the operator’s job was writing a target list.

The “AI hacker” framing undersells the useful lesson, which is where these agents win. Redis and the password spraying got them nothing; obscure software with authentication off by default got them root. Previdian’s honeypot shows the same product drawing a second framework days after the CVE landed. Agents are good at grinding through the long tail of software human attackers never bothered with, and research infrastructure is that long tail.

So my priority list isn’t “deploy AI defence”. It is: find the lab servers, upgrade to 0.8.8, take them off the internet, turn auth on, stop running them as root. The maintainers have since shipped three security releases in four days. The month between merge and release is what I’d want fixed next time.

Sources

Leave a Reply