Skip to content

MONAI Label CVE-2026-133968: Patch the Path Traversal AI Agents Exploited

MONAI Label CVE-2026-133968 is an exploited, CVSS 9.8 path traversal that leads to RCE. Upgrade to 0.8.6, lock down auth and exposure, and check for changes.

MGMCSA Guru Team November 25, 2026 9 min read
A fenced server vault holding medical scan slices while a trail of files escapes under the floor up a folder staircase, and a glowing shield plate seals the gap

MONAI Label CVE-2026-133968 is a path traversal bug in the server’s datastore upload endpoints. It lets a caller write a file anywhere the MONAI Label process can write, and that turns into remote code execution. The CVE record from MITRE scores it 9.8 (CVSS 3.1, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). Every release up to and including 0.8.5 is affected. The fix is MONAI Label 0.8.6, released on November 22, 2026.

This one is already exploited. CISA added CVE-2026-133968 to its Known Exploited Vulnerabilities catalog on November 23, 2026, and the CVE description says it was “exploited in the wild starting in September 2026.” Amazon Threat Intelligence reported on November 20 that autonomous AI agents run by a threat actor found the bug on their own and used it to take over a university server.

MONAI Label ships with authentication turned off. If your server is reachable from a network you don’t trust, assume it was a target, upgrade to 0.8.6, and check it for unexpected file changes.

What CVE-2026-133968 does

MONAI Label is Project MONAI’s annotation server for medical imaging AI. Viewer plugins such as 3D Slicer and OHIF talk to it, and the server exposes API endpoints for datastore uploads and model training.

The MONAI Label advisory, GHSA-qc22-rmgc-vg94, explains the mechanism. The PUT /datastore/image endpoint takes a caller-controlled image query parameter and uses it as the image ID without validation. LocalDatastore.add_image() appends the file extension, joins the ID onto the datastore image directory and writes the upload there with shutil.copy(). The code never checks that the final path stays inside the datastore. A value with ../ sequences in it puts the uploaded file somewhere else on disk. PUT /datastore/label builds its path from the image ID and label tag the same way, through LocalDatastore.save_label().

An arbitrary file write becomes code execution once the attacker picks the right file. The advisory names overwriting application code, adding a key to .ssh/authorized_keys, or adding a cron entry. Overwriting configuration files can also take the server down.

Two settings make it worse:

  • Authentication is disabled by default (MONAI_LABEL_AUTH_ENABLE=False). In the default configuration, any client that can reach the server can exploit the bug.
  • With authentication turned on, the ANNOTATOR role is enough. That is the role you hand to the people who label scans.

The MITRE CVE record lists the weakness as CWE-24 (path traversal with ../filedir), and the GitHub advisory lists CWE-22. NVD had not analyzed the record yet when this was written; its status was “Received.”

How AI agents found and used it

Amazon’s write-up, by CJ Moses, CISO of Amazon Integrated Security, describes a campaign Amazon found on September 10, 2026. Amazon came across a publicly reachable instance of Cairn, an open-source autonomous AI penetration-testing framework, running without authentication. The operator’s history was visible: project setups, prompts and AI output. The campaign targeted IP addresses tied to universities in East Asia outside mainland China over about 48 hours from September 8, 2026. The operator gave the agents goals like “obtain shell access.”

Against “an open-source medical imaging AI application,” Amazon says the agents identified the framework, mapped its API endpoints and found an upload endpoint with a filename parameter. They tested it for path traversal and it was vulnerable. In about 11 minutes the agents went from mapping the API to writing arbitrary files on the server.

In a later session, the agents wrote a Python reverse shell to sitecustomize.py, a file Python imports automatically when an interpreter starts. They then called a training API endpoint, which started a new Python process. That process loaded the payload and opened a reverse shell running as root. Amazon also says the actor later gave the agents a proxy that tunneled into a second university network, and that the server behind the proxy ran the same vulnerable software. Amazon infers the actor used the zero-day to compromise it.

Amazon’s post does not name the product. The Register’s November 20 report names it as MONAI Label, and the CVE record links the CVE to that reporting and to the AWS post. Amazon attributes the activity to a Chinese-nexus actor with moderate confidence, based on Simplified Chinese prompts, China Standard Time timestamps and the targeting. That is an assessment, not a confirmed finding.

Affected and fixed versions

ItemDetail
Affectedmonailabel 0.8.5 and earlier (GHSA range <= 0.8.5; CVE record “before 0.8.6”)
FixedMONAI Label 0.8.6 (pip and Docker), released November 22, 2026
Vulnerable endpointsPUT /datastore/image and PUT /datastore/label
Also fixed in 0.8.6Path traversal in session upload, PUT /session/?uncompress=true (PR #1942, no CVE listed)
CVSS 3.19.8 Critical (MITRE CNA)
CISA KEVAdded November 23, 2026; federal due date November 26, 2026; forensic triage Yes

The code fix, PR #1915, was merged to the main branch on October 19, 2026, but it only shipped in a release with 0.8.6. If you install from PyPI or pull a tagged Docker image, anything before 0.8.6 lacks the fix.

PR #1915 makes add_image() and save_label() resolve the destination, including the label tag directory, and reject any path outside the datastore image and label directories. The /datastore/image endpoint also cuts the image ID down to its basename and returns HTTP 400 for empty or dot-prefixed IDs.

0.8.6 fixes a second traversal too. PUT /session/?uncompress=true extracted uploaded tar archives without checking member names, and session IDs were used as paths without validation. 0.8.6 now rejects tar archives with links or device files and returns HTTP 400 for bad archives.

Upgrade MONAI Label to 0.8.6

Check what you run first:

pip show monailabel

Anything at 0.8.5 or lower is vulnerable. For Docker deployments, check the image tag your container was started from.

The 0.8.6 release notes give the upgrade commands:

pip install -U monailabel==0.8.6
docker pull projectmonai/monailabel:0.8.6

After the pull, redeploy the container from the 0.8.6 image. Pulling the image alone doesn’t replace a running container.

Two changes in 0.8.6 can break an in-place pip upgrade:

  • 0.8.6 drops Python 3.9 and 3.10 and requires Python 3.11 or newer. On an older environment, build a new virtual environment on a supported Python before you install.
  • The Docker image moved to Ubuntu 24.04 with Python 3.12, and python and monailabel now live in /opt/venv. Custom images or scripts that call a hard-coded Python path need a check.

The release also makes numpymaxflow (scribbles and GraphCut) optional, installed with pip install monailabel[scribbles], and moves DICOM SEG export from pydicom-seg to highdicom with pydicom 3.x. Test your apps and client plugins after the upgrade.

Lock it down while you upgrade

The GitHub advisory lists three workarounds “until you can upgrade,” and the 0.8.6 release notes repeat them as standing advice for every version:

MONAI Label hardening

  • Upgrade every server to 0.8.6 (pip install -U monailabel==0.8.6, or redeploy from projectmonai/monailabel:0.8.6)
  • Keep MONAI Label, and any proxy in front of it, off the internet and off untrusted networks
  • Turn on authentication with MONAI_LABEL_AUTH_ENABLE=True
  • Give roles, especially ANNOTATOR, only to trusted users
  • Run the server as an unprivileged user that can write only to the datastore directory
  • If a 0.8.5 or older server was reachable from an untrusted network, review it for unexpected file changes before it goes back into service

The unprivileged user matters here. In Amazon’s case the reverse shell came up as root. A service account that can write only to the datastore can’t drop a file into root-owned Python startup paths, another user’s .ssh or the system cron directories, so a traversal has far fewer useful targets. For containers, the same idea applies: a non-root user and a read-only image layer, with only the datastore mounted writable. Our Docker security best practices cover that setup.

The README is specific: deploy MONAI Label only on a closed, trusted LAN, and don’t expose the server, or any proxy in front of it, to the public internet. If remote annotators need it, bring them onto that LAN over a VPN instead of publishing a port.

Check for signs of compromise

Neither the project nor CISA has published log signatures for CVE-2026-133968. The checks below follow from the documented endpoints and from what Amazon saw.

Look for unexpected files. The advisory’s RCE paths are application code, .ssh/authorized_keys and cron. Amazon’s case used sitecustomize.py. Look for sitecustomize.py files you didn’t put there in the Python environment the server uses, and for recent changes in those other places:

find / -name 'sitecustomize.py' -not -path '/proc/*' 2>/dev/null

Most environments have no sitecustomize.py, or one shipped by the distribution. A recently modified one inside the MONAI Label virtual environment or site-packages needs a closer look.

Review request logs. If requests pass through an internal reverse proxy that keeps access logs, search for PUT /datastore/image or PUT /datastore/label requests whose image or tag values contain ../ (or URL-encoded %2e%2e), and for PUT /session/ uploads with uncompress=true from sources you don’t recognize. This is our suggestion based on the endpoints the advisory documents, not a vendor detection rule. Adjust the log path to your setup:

grep -E 'PUT /datastore/(image|label)' /var/log/nginx/access.log | grep -iE '\.\./|%2e%2e'

Check Amazon’s indicators. Amazon published two IP addresses seen in records dated September 8 to 10, 2026: 142[.]4.98.145 and 142[.]4.107.34. Amazon lists them as campaign indicators and doesn’t say they were the MONAI exploitation source. Treat them as old, low-value indicators, and don’t read a clean result as proof of anything.

If you find signs of a write outside the datastore, treat the host as compromised. Our advice is to isolate it, keep the evidence and rebuild it rather than clean it in place, because a root shell can change far more than the files you found. CISA marks forensic triage as required for this KEV entry under BOD 26-04, which binds US federal agencies.

Should you patch now?

Yes. CVE-2026-133968 needs no login in the default configuration, gives file write as the server’s user, is listed in CISA KEV, and has a released fix. If you run MONAI Label anywhere, upgrade it to 0.8.6 today.

Then fix the exposure. The project itself says MONAI Label has other known, unpatched issues and must not face the internet. An upgraded server that’s still public and has auth turned off is still a risk.

Frequently asked questions

What is MONAI Label CVE-2026-133968?

It is a path traversal in the PUT /datastore/image and PUT /datastore/label endpoints of the MONAI Label server. The server builds the destination path from caller input without confining it to the datastore, so a caller can write files anywhere the process can write. The GitHub advisory says that can lead to remote code execution.

Which MONAI Label versions are affected and which version fixes it?

All versions up to and including 0.8.5 are affected. MONAI Label 0.8.6, released on November 22, 2026, fixes it. Upgrade with pip install -U monailabel==0.8.6 or redeploy from the projectmonai/monailabel:0.8.6 Docker image.

Is CVE-2026-133968 being exploited?

Yes. CISA added it to the Known Exploited Vulnerabilities catalog on November 23, 2026, and the CVE record says exploitation started in September 2026. Amazon Threat Intelligence reported autonomous AI agents finding and using the bug against a university server.

Does an attacker need to log in?

Not in the default configuration. Authentication is disabled by default (MONAI_LABEL_AUTH_ENABLE=False), so any client that can reach the server can exploit it. With authentication turned on, the ANNOTATOR role is enough.

Is MONAI Label safe to expose to the internet after upgrading?

No. The 0.8.6 release notes and the project README say not to expose MONAI Label, or any proxy in front of it, to untrusted networks. The README warns of other known, unpatched security issues and says to run it only on a closed, trusted LAN.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.