What happened
MONAI Label is an open-source tool from Project MONAI that helps clinicians and researchers annotate medical images and train AI models on them. It runs as a server that image viewers such as 3D Slicer or OHIF connect to.
The server has a critical flaw tracked as CVE-2026-133968. When images and labels are uploaded through the datastore interface, the server does not check where exactly the file ends up, so an attacker can write a file anywhere the server process is allowed to write. The project published security advisory GHSA-qc22-rmgc-vg94 on November 18, 2026 and released the fixed version 0.8.6 on November 22, 2026.
The flaw is being actively exploited, and attackers found it before the maintainers did. According to Amazon Threat Intelligence, autonomous AI agents built on the Cairn framework, operated by a group likely linked to China, discovered it in September 2026 and used it to take over a university server in East Asia. The US agency CISA added the flaw to its Known Exploited Vulnerabilities (KEV) catalog on November 23, 2026, and ENISA’s European vulnerability database EUVD also lists it as exploited (EUVD-2026-131722).
Version 0.8.6 also fixes a related flaw in session uploads that likewise allowed files to be written outside the intended folder.
Why it is dangerous
This is a path traversal flaw, meaning a file can escape the folder it is supposed to stay in. Imagine a cloakroom where you write on your own ticket where the attendant should hang your coat. If nobody checks the ticket and you write “director’s office”, that is where the coat ends up. MONAI Label similarly took a file name from the client and used it as a path on disk without checking it.
According to the maintainers, writing arbitrary files can lead to remote code execution, for example by overwriting application code or adding entries to the SSH keys file or to cron. Overwriting configuration files can also knock the server offline. Amazon reports that the attackers used the flaw to get a remote shell running as root, and infers that the same flaw was used to compromise a server in a second university network, which then served as a stepping stone to other machines.
No login is needed. Authentication in MONAI Label is disabled by default (MONAI_LABEL_AUTH_ENABLE=False), so anyone who can reach the server over the network can exploit the flaw. With authentication enabled, an account with the ANNOTATOR role is enough.
- CVSS 9.8 out of 10 (critical): the score was assigned by MITRE, the organization that runs the CVE system, and is also listed in NVD. It means the attack works over the network, is easy to carry out and needs neither a login nor any user action.
- CISA KEV: the US agency CISA’s catalog of vulnerabilities known to be exploited in real attacks. This flaw was added on November 23, 2026. CISA does not yet say whether ransomware groups use it.
- EPSS: an estimate of how likely a flaw is to be exploited in the next 30 days. As of November 23, 2026 it is about 3.7%, higher than roughly 90% of all scored vulnerabilities. Since exploitation is already confirmed, this number is only supplementary.
Who is affected
All MONAI Label servers running version 0.8.5 or earlier are affected, whether installed via pip (the monailabel package) or run from the projectmonai/monailabel Docker image. The maintainers say all MONAI Label server deployments should upgrade.
Typical users are hospitals, research institutes, universities and companies building medical AI. Servers reachable from the internet or from untrusted networks are at the highest risk. The campaign Amazon described targeted universities.
If you do not run MONAI Label, this flaw does not affect you. The maintainers note that the vulnerable code is in MONAI Label, not in the core MONAI library. Ordinary company websites, online shops or office servers without this tool are not affected.
How to check if you are affected
On the machine running MONAI Label, the following commands show the version. They only read information and change nothing.
pip show monailabel
If the server runs in Docker, check which image and tag the container uses, or check the version inside the container:
docker ps --format '{{.Names}} {{.Image}}'
docker exec <container_name> pip show monailabel
Version 0.8.5 or earlier means you are vulnerable. Also check which user the server runs as and whether authentication is enabled:
ps aux | grep -i monailabel
docker inspect <container_name> | grep MONAI_LABEL_AUTH_ENABLE
For a pip install, find the process ID (PID) in the ps output and look at its environment variables:
cat /proc/<PID>/environ | tr '\0' '\n' | grep MONAI_LABEL_AUTH
If MONAI_LABEL_AUTH_ENABLE=True does not appear, authentication is most likely off, since the default is False. If the process runs as root, an attacker could gain full control of the system the server runs on.
How to fix it
The flaw is fixed in version 0.8.6. We recommend working in this order:
- Find every MONAI Label server in your organization, including test and research instances.
- Immediately restrict servers reachable from the internet or untrusted networks with a firewall, so they are only reachable from a trusted internal network or via VPN.
- Before upgrading, check whether the server has been compromised (see the last section). The maintainers advise reviewing any 0.8.5 or older server that was reachable from an untrusted network for unexpected file changes before returning it to service.
- Upgrade to 0.8.6. Note that it requires Python 3.11 or newer. The new Docker image is based on Ubuntu 24.04 with Python 3.12.
- Restart the server, or recreate the container from the new image, and verify the version.
pip install -U monailabel==0.8.6
docker pull projectmonai/monailabel:0.8.6
Regardless of version, the maintainers recommend the following. If you cannot upgrade right away, these also serve as a workaround:
- enable authentication (
MONAI_LABEL_AUTH_ENABLE=True) and grant the ANNOTATOR role only to trusted users, - do not expose the server to untrusted networks,
- run the server as an unprivileged user that can only write to the datastore directory.
CISA requires US federal agencies to apply mitigations per the vendor’s instructions by November 26, 2026, or stop using the product if no mitigations are available. That is a sensible benchmark for businesses too.
What if you may already be compromised
If a server running 0.8.5 or earlier was reachable from an untrusted network, assume it may have been compromised, especially if it runs as root. Look for:
- unexpected file changes outside the data folder, particularly in application code and the Python installation,
sitecustomize.pyfiles you did not put there. According to Amazon, the attackers used such a file to run their own code whenever Python started,- new keys in
.ssh/authorized_keysfiles and new cron jobs, - PUT requests to
/datastore/image,/datastore/labeland/session/from unknown addresses, - unknown outbound connections and Python processes running as
root, - the addresses 142[.]4.98.145 and 142[.]4.107.34, which Amazon lists as indicators from records dated September 8 to 10, 2026.
find / -xdev -name sitecustomize.py -ls 2>/dev/null
cat /root/.ssh/authorized_keys /home/*/.ssh/authorized_keys 2>/dev/null
crontab -l -u root
To search container and reverse proxy logs (the path is for nginx, zgrep also reads compressed logs):
docker logs <container_name> 2>&1 | grep -E 'PUT /(datastore/(image|label)|session)'
zgrep -E 'PUT /(datastore/(image|label)|session)|142\.4\.(98\.145|107\.34)' /var/log/nginx/access.log*
If you find anything suspicious, do not delete anything, back up the logs, disconnect the server from the network and bring in an incident response specialist. In the campaign Amazon described, the attackers moved from the compromised server deeper into the network, so check neighboring systems as well. If the server handled patient data, also consider your GDPR obligations.
Sources
- Path traversal in datastore upload endpoints allows arbitrary file write · Advisory · Proj ↗
- Release MONAI Label 0.8.6 · Project-MONAI/MONAILabel · GitHub ↗
- NVD: CVE-2026-133968 ↗
- CISA KEV: CVE-2026-133968 ↗
- Chinese-nexus actor’s Cairn AI agents found a zero-day on their own | AWS Security Blog ↗
- China attackers deployed AI agents that autonomously found and exploited a 0-day to take o ↗
- ENISA EUVD EUVD-2026-131722 ↗