Update to 0.8.8, not 0.8.6
Many reports say that MONAI Label 0.8.6 fixes CVE-2026-133968. That is true, but it is no longer the safe version to use. When we checked the project's release page on 29 November, 0.8.8 was the latest version. It fixes another critical flaw that could let an attacker run code.
| Version | What to know |
|---|---|
| 0.8.5 and older | Affected by CVE-2026-133968 and a second upload flaw |
| 0.8.6 | Fixes both upload flaws. Released on 22 November |
| 0.7.0 to 0.8.7 | Affected by a critical flaw in bundle inference and training |
| 0.8.8 | Fixes that flaw. Released on 25 November |
MONAI Label 0.8.6 and later need Python 3.11 or newer. Check your Python version before you update.
python --version python -m pip show monailabel
Run these commands in the environment or container that runs the server. Your laptop may have a different version.
What Amazon reported
Amazon published its report on 20 November 2026. It says the attacker's AI agents, run with a framework called Cairn:
- Found a path traversal flaw in an upload feature of an open-source medical imaging app.
- Took about 11 minutes to go from mapping the API to writing files on the server.
- Later got full control of a server.
Some headlines say it took 11 minutes to get full control. The time in Amazon's report is for writing files, not for taking over the whole server.
Amazon has moderate confidence that the attacker is linked to China. Its report also describes attacks on two other university systems that did not work. We found no independent report that confirms all the details.
The coding mistake
Path traversal happens when an app uses a file name from a user without checking where the file will be saved. Here is a simple example. It is not code from MONAI Label.
# Unsafe: the user controls part of the path target = UPLOAD_DIR / upload.filename target.write_bytes(data)
It is safer to let the server choose the file name:
from pathlib import Path
from uuid import uuid4
UPLOAD_DIR = Path("/srv/app/uploads").resolve()
ALLOWED = {".nii", ".dcm"}
def save_upload(original_name: str, data: bytes) -> Path:
suffix = Path(original_name).suffix.lower()
if suffix not in ALLOWED:
raise ValueError("file type not allowed")
target = UPLOAD_DIR / f"{uuid4().hex}{suffix}"
with target.open("xb") as file:
file.write(data)
return targetThe user's file name is not used in the saved path. The xb mode stops Python from replacing a file that already exists. If you need to show the original name, save it as text in your database. Your app should also check the file's contents, limit its size and make sure the user is allowed to upload it.
Archives need checks too. MONAI Label 0.8.6 also fixed an upload feature that unpacked tar files without checking the names inside. In Python, use a safe extraction filter:
import tarfile
with tarfile.open(archive_path) as archive:
archive.extractall(destination, filter="data")Use a supported and up-to-date Python version, because the filter itself has had security fixes. Unpack files into a new, empty folder, and limit their number and total size.
Make the server harder to attack
The project recommends three steps for every MONAI Label server:
- Keep it away from untrusted networks.
- Turn on authentication.
- Run it as a user with limited permissions, not as root.
Authentication lowers the risk but does not replace the update, because a person with an account may still be able to use a flaw. Limit which folders the server can write to. It should not be able to change its own code or Python packages.
If version 0.8.5 or older could be reached from an untrusted network, look for unexpected file changes, especially in Python folders. Also check for new processes and outgoing connections. If you find signs of an attack, isolate the server and rebuild it. Updating it will not remove a backdoor.
What this means for other teams
AI agents can make it faster to test an app for common mistakes. The ways to prevent these mistakes have not changed: check who can use each feature, handle file paths safely and limit what the server can do. A small internal tool also needs these protections if someone can reach it from the internet.
What scanners can and cannot find
SAST can often follow a user's file name to the place where a file is saved. It may miss this when a framework or helper function is involved. DAST can test the upload features it can reach, but use a test server because uploads can change files. SCA can report an affected package if your project lists it and the scanner's data includes the flaw. It may not know about the newest flaw yet, so check the project's release notes too.
Sources
- AWS Security Blog: Cairn AI agents found a zero-day. We could read only an excerpt of this post.
- MONAI Label releases and security notes
- Python documentation: tarfile extraction filters
Check your code for unsafe file handling
AquilaX SAST checks the code your team writes. Included in Premium and Ultimate.
See SAST →