MONAI Label unauthenticated file write exploited as zero-day against universities
A path traversal in MONAI Label 0.8.5 and earlier lets any client that can reach a server in its default configuration write files outside the datastore. It was exploited as a zero-day in September 2026. Upgrade to 0.8.6 and check exposed servers for tampered files.
What you need to know
- MONAI Label 0.8.5 and earlier is affected. Authentication is off by default, so any client that can reach the API can exploit the flaw.
- The flaw gives arbitrary file write as the service account, which can lead to code execution. Amazon observed a root reverse shell on one university server.
- Exploited as a zero-day from 2026-09-08 by AI agents that Amazon attributes, with moderate confidence, to an unnamed Chinese-nexus actor. Listed in CISA KEV with a federal due date of 2026-11-26.
- Fix: upgrade to 0.8.6 (pip
monailabel==0.8.6or Dockerprojectmonai/monailabel:0.8.6), enable authentication and keep servers off untrusted networks. - Hunt: review
PUT /datastore/imageandPUT /datastore/labelrequests. Check Python startup files such assitecustomize.pyfor unexpected changes.
What's happening
CVE-2026-133968 is a path traversal in MONAI Label from Project MONAI. It lets a caller of the datastore upload API write files outside the datastore 1. All versions up to and including 0.8.5 are affected, and 0.8.6 contains the fix 2. Authentication is disabled by default, so in a stock deployment any network client that reaches the server can exploit the flaw. With authentication enabled, the ANNOTATOR role is enough 1. The maintainers say the write can lead to remote code execution, for example by overwriting application code or adding SSH authorized_keys or cron entries. It can also cause denial of service by overwriting configuration files 1.
Amazon Threat Intelligence reports that a Chinese-nexus actor used AI agents built on Cairn, an open-source autonomous penetration-testing framework. Amazon does not name the actor and rates its attribution as moderate confidence 5. The campaign targeted East Asian university IP addresses outside mainland China for about 48 hours from 2026-09-08 5. According to Amazon, the agents were told to obtain shell access and found the flaw themselves. They went from mapping the API to arbitrary file write in about 11 minutes, and a later session reached a root reverse shell on a university server 5. Amazon assesses with high confidence that this was a zero-day. It also infers, without confirming, that a server on a second university network was compromised through the same flaw 5.
CISA added the CVE to KEV on 2026-11-23. The federal due date is 2026-11-26, and BOD 26-04 requires forensic triage 4. The maintainers' advisory and release notes do not mention in-the-wild exploitation 1,2. The Hacker News, BleepingComputer, The Register and SecurityWeek identify the product as MONAI Label, but all four rely on Amazon's report 7,8,9,10. The Hacker News notes that root access was seen on one server. Results elsewhere depend on how each deployment runs and what its service account can write 7.
How it works
The bug is a path traversal in the datastore upload endpoints. CISA classifies it as CWE-24, while the vendor advisory lists CWE-22 4,1. PUT /datastore/image uses the caller-supplied image query parameter as the image ID without validation. LocalDatastore.add_image() then builds the destination path from that ID and never checks that the resolved path stays inside the datastore 1. PUT /datastore/label has the same flaw: LocalDatastore.save_label() builds its destination from the image ID and label tag without confinement 1.
No special conditions are needed to reach the flaw. Authentication is off by default (MONAI_LABEL_AUTH_ENABLE=False), so a default deployment accepts these requests from any client that can reach it. With authentication on, an ANNOTATOR account is sufficient 1. Writes succeed only where the MONAI Label process can write, so impact scales with the privileges of the service account 1. In the incident Amazon analysed, the attacker wrote to sitecustomize.py, a Python startup file, and the file write was turned into a root reverse shell 5.
The fix (PR #1915) resolves destination paths in add_image() and save_label() and rejects any path outside the datastore image and label directories. The image endpoint also reduces the ID to its basename and returns HTTP 400 for empty or dot-prefixed IDs 1,3. Release 0.8.6 separately fixes a second path traversal in session upload (PUT /session/?uncompress=true), covering tar extraction and session IDs used as paths, in PR #1942. No CVE for that issue appears in the sources reviewed 2.
What to do
In order of priority- 1
Upgrade to MONAI Label 0.8.6 with
pip install -U monailabel==0.8.6or theprojectmonai/monailabel:0.8.6Docker image. The maintainers call it a security release for all server deployments 2. The GitHub advisory page still lists no patched version, but the release notes confirm the fix 1,2. - 2
If you cannot upgrade yet, enable authentication (
MONAI_LABEL_AUTH_ENABLE=True) and do not give the ANNOTATOR role to untrusted users 1. - 3
Remove exposure to untrusted networks. The maintainers advise against internet-facing deployments for any version, and PR #1940 added a docs warning saying so 2.
- 4
Run the service as an unprivileged user whose write access is limited to the datastore directory. Follow this step even after upgrading 1,2.
- 5
Assume breach for any 0.8.5 or older server that was exposed. Triage it forensically before or alongside patching 4. If you find tampering, rebuild the host and rotate SSH keys, tokens and other credentials the service account could reach.
- 6
Under BOD 26-04, CISA requires federal agencies to apply vendor mitigations or discontinue use by 2026-11-26 4.
Detection
- Inventory MONAI Label servers and their versions. Per the maintainers, any server on 0.8.5 or older that was reachable from an untrusted network should be reviewed for unexpected file changes before it returns to service 2.
- In web server or reverse-proxy logs, review
PUT /datastore/imageandPUT /datastore/labelrequests whose image IDs or label tags contain path separators or..sequences. This is an inference from the advisory's description of the vulnerable routes, not a vendor detection rule 1. - Check
sitecustomize.pyand other auto-imported Python startup files in the environments the service uses for unexpected modification. Amazon reports the attacker wrote tositecustomize.py5. - Look for files the service account wrote outside the datastore, such as new
authorized_keysentries, cron jobs, and modified application code or configuration. These are the abuse paths named by the vendor 1. - Review process telemetry for shells or network utilities spawned by the MONAI Label Python process, and for unexpected outbound connections from the host. Both are consistent with the reverse shell Amazon observed 5.
- Search firewall, NetFlow and proxy logs for traffic involving
142.4.98.145and142.4.107.34. Amazon lists these addresses for the campaign, with activity from 2026-09-08 to 2026-09-10 5. - Federal agencies must perform BOD 26-04 forensic triage to determine whether systems were compromised before patching 4.
Indicators
As published by the cited sourcesTimeline
Cairn-driven campaign against East Asian universities begins and lasts about 48 hours. This is the earliest known exploitation, as a zero-day. 5
Amazon Threat Intelligence finds the operator's unauthenticated Cairn instance and reconstructs the campaign. 5
Fix PR #1915 ('confine datastore write paths') opened. 3
PR #1915 merged to main. The fix is in source only, with no installable release yet. 7
Advisory GHSA-qc22-rmgc-vg94 published, with no patched version and no CVE listed. 1
CVE-2026-133968 published. Amazon's report on the Cairn campaign appears the same day. 6
MONAI Label 0.8.6 released with the fix. 2
CISA adds the CVE to KEV with a federal due date of 2026-11-26. 4
Sources
- 1Path traversal in datastore upload endpoints allows arbitrary file writeProject MONAI (GitHub Security Advisory) · Vendor · Nov 18, 2026
- 2Release MONAI Label 0.8.6Project MONAI · Vendor · Nov 22, 2026
- 3fix: confine datastore write paths (#1915)Project MONAI · Vendor · Oct 19, 2026
- 4CISA KEV catalog entry for CVE-2026-133968CISA · Government · Nov 23, 2026
- 5Chinese-nexus actor's Cairn AI agents found a zero-day on their ownAmazon Threat Intelligence / AWS Security Blog · Research · Nov 20, 2026
- 6CVE Record: CVE-2026-133968CVE Program / MITRE · Database · Nov 20, 2026
- 7Attackers' AI Agents Found a Zero-Day in Medical-Imaging Software and Gained RootThe Hacker News · News
- 8Hackers use autonomous AI tool Cairn to find zero-day, take over serverBleepingComputer · News · Nov 20, 2026
- 9China attackers deployed AI agents that autonomously found and exploited a 0-day to take over a university serverThe Register · News · Nov 20, 2026
- 10Amazon: China-Linked Hackers' AI Agents Exploited Medical Software Zero-DaySecurityWeek · News
Corroborated by independent sources. Researched and drafted by the VulnDigest briefs agent from 10 sources, then checked against them by a separate review step on Nov 24, 2026.
Exploitation rests on CISA KEV and Amazon Threat Intelligence. The vendor does not confirm it, and all four news reports are based on Amazon's report.
Amazon's post links GHSA-qc22-rmgc-vg94 but never names MONAI Label. The product identification relies on that link and the news coverage.
The GHSA page still shows 'Patched versions: None'. Fixed version 0.8.6 comes from the vendor release page dated 2026-11-22. BleepingComputer's 'Nov 18 update' matches the advisory date, not a release.
CWE conflict: CISA KEV lists CWE-24 and the vendor advisory lists CWE-22. The brief uses CWE-24.
Third-party feeds list a public PoC and scanner templates, but no vendor, government or research source confirms them, so no PoC details are given. EPSS snapshots conflict (~0.50 vs 4%) and are not cited.
No activity beyond Amazon's September 2026 campaign is publicly reported, and CISA has not published the basis for its KEV listing. Amazon does not say what role the two listed IP addresses played.
Spotted an error? Open an issue on sochub.io.