← All articles

MONAI Label vulnerability enables unauthenticated file writes

MONAI Label vulnerability enables unauthenticated file writes

The MONAI Label vulnerability allows an unauthenticated attacker to write files outside the server’s approved storage folder, and it may lead to root access on some systems. Amazon Threat Intelligence said suspected China-linked hackers used autonomous AI agents to find the previously unknown flaw and compromise one university server. MONAI Label 0.8.5 and earlier are affected in the default configuration, where login is disabled.

MONAI Label is an open-source server used by research teams to label medical scans and train medical-imaging models. It is separate from the wider MONAI framework. The flaw is a path-traversal vulnerability, a mistake that lets a supplied file name point outside its intended folder. In this case, identifiers used when storing uploaded images and labels are added to the storage path and written to disk without checking that the final location remains inside the approved directory.

The server writes files with the permissions of the account running it. That does not automatically let an attacker write anywhere on the machine, but a writable program-code or settings directory can create a route to code execution. Because authentication is off by default, any client able to reach the server over the network can attempt the file write. All MONAI Label versions up to and including 0.8.5 are affected.

Amazon reconstructed the activity after finding the operator’s Cairn control panel exposed online without a password. Cairn is an open-source framework for running AI agents as automated penetration testers. The panel showed the agents’ task settings, prompts and run history. Over roughly 48 hours in September, the agents mapped the application interface and reached the file-writing function in about 11 minutes, Amazon said in its incident report.

The operator selected the targets and set the objective of obtaining shell access, meaning a command interface on the server. The agents chose their own methods with little step-by-step guidance. Investigators attributed the campaign to a China-linked actor with moderate confidence, based on Simplified Chinese prompts, China Standard Time settings and targets considered likely to interest China. They did not identify a named group or establish that a government was responsible.

The root shell came later, not during the first 11 minutes. In a separate session, the agents used the same flaw to place a file that Python loads automatically when it starts. They then activated a training feature that launched a new Python process. That process loaded the planted file and connected back to the attacker with root privileges, which provide the highest level of control on the system.

The root result was observed on one university server. Another MONAI Label installation may not produce the same outcome because the impact depends on how the service is configured and what its service account is allowed to do. In a later session, the operator supplied the agents with a tunnel into a second university network running the same software. Amazon believes that network was compromised through the same weakness, but has not confirmed the second intrusion.

The maintainers merged a source-code correction on October 19. It requires uploaded paths to resolve within the permitted folders and rejects empty names and names beginning with a dot. However, the security advisory published earlier this week still lists no patched version. It says the correction will be included in a future release, while the newest release listing remains 0.8.5, released in 2024. A change merged into source code is not the same as an installable package.

The vulnerability is listed in the CVE record as CVE-2026-133968, with a critical severity score of 9.8 out of 10. The project advisory still says that no CVE has been assigned, which reflects a delay in updating that page rather than a second vulnerability. Amazon’s account is based on its own reconstruction and has not been independently confirmed. It does not establish that patient scans or records were stolen, that clinical systems were accessed, or that the attacker moved beyond the university targets described. The campaign also included failed operations, so the result on one server should not be treated as inevitable for every deployment.

Until an installable fixed release is available, administrators should block untrusted network access to MONAI Label with firewall and routing rules, enable authentication, and run the service under a limited account rather than root. They should also restrict the folders it can write to and verify that any source build contains the October correction before considering it patched. If a server was reachable from an untrusted network, administrators should check for unexpected Python startup files and unusual training jobs, which were part of the reported attack path. For teams reviewing their wider infrastructure exposure, AEU-I provides security-first IT, infrastructure and consulting.

Also available in: DeutschItalianoShqip