Mastodon Mastodon Mastodon Mastodon

Autonomous AI agents discovered and exploited a critical vulnerability in MONAI Label medical software

Photo of author

CyberSecureFox Editorial Team

Published:

A critical directory traversal vulnerability (CVE-2026-133968, CVSS 9.8) in the server software for medical image annotation MONAI Label versions up to and including 0.8.5 was exploited in a real-world attack — and it was autonomous AI agents that discovered and used it. According to Amazon Threat Intelligence, the agents independently found a previously unknown flaw, achieved arbitrary file writes in about 11 minutes, and in a subsequent session obtained root access on a university server. All organizations using MONAI Label must immediately isolate their servers from untrusted networks and enable authentication, which is disabled by default.

Technical essence of the vulnerability

The vulnerability belongs to the path traversal class (CWE-22 / CWE-24) and affects the PUT /datastore/image endpoint. According to the Project-MONAI security advisory, the image parameter passed by the caller is used as a file identifier and concatenated with the path to the data store without verifying that the resulting path remains within the permitted directory. This allows arbitrary files to be written to any location writable by the MONAI Label process.

A key aggravating factor: authentication is disabled by default (environment variable MONAI_LABEL_AUTH_ENABLE=False). Any network client that can reach the server can exploit the vulnerability without credentials. Even with authentication enabled, the ANNOTATOR role is sufficient. The entry in the GitHub Advisory Database rates the vulnerability as critical with CVSS v3.1 9.8. The CVE-2026-133968 entry in NVD was published this week.

MONAI Label is a server used by research teams for annotating medical images and training visualization models. It is a separate application from the broader MONAI framework.

How the AI agents carried out the attack

According to Amazon Threat Intelligence, the investigation became possible after the discovery of an exposed Cairn management panel — an open-source framework for running AI agents as automated penetration-testing tools. The panel was accessible from the internet without a password and contained task settings, prompts, and the agents’ run history.

It is important to distinguish two stages of the attack. First: during a roughly 48-hour campaign that began on 8 September 2026, the agents mapped the application’s API and reached arbitrary file writes in approximately 11 minutes. However, root access was not obtained in 11 minutes — that happened in a separate, later session. In that session, the agents used the same vulnerability to write a payload into the sitecustomize.py file — a file that Python automatically loads at startup. They then triggered a training function via the API, which launched a new Python process that loaded the malicious file and established a reverse shell with root privileges.

The agents operated with minimal manual control: the operator defined the goal (obtaining shell access) and chose the targets, while the agents selected the methods on their own. This information is based on Amazon’s reconstruction and has not been independently verified.

Amazon published the following indicators of compromise related to logs from 8–10 September 2026:

  • 142[.]4.98.145
  • 142[.]4.107.34

Attribution

Amazon Threat Intelligence with a moderate degree of confidence associates the campaign with a Chinese threat actor, based on prompts in Simplified Chinese, the China Standard Time time-zone settings, and the selection of targets — universities in East Asia outside mainland China, which presumably represent strategic interest. No specific group or state sponsor has been identified, and no independent confirmation of the attribution has been found.

Patch status: uncertainty

The fix was merged into the source code via pull request #1915 on 19 October 2026. The patch restricts data store writes to allowed directories and rejects empty identifiers and identifiers starting with a dot.

However, the situation around the release of a fixed version is ambiguous. The Project-MONAI security advisory still states that there are no fixed versions and that the patch will be included in the next release. At the same time, a monailabel 0.8.6 package dated 22 November 2026 has appeared on PyPI. The available materials do not allow us to unambiguously determine whether 0.8.6 contains this fix. Until this question is clarified, a build from source should be considered safe only if the presence of the October patch is confirmed.

Additionally, the project page on PyPI explicitly warns that MONAI Label is not intended to run as an internet-facing application and recommends deployment only in a closed, trusted local network.

Defense recommendations

  • Isolate MONAI Label servers from untrusted networks using firewall and routing rules. Do not rely on hard-to-guess URLs.
  • Enable authentication — it is disabled by default (MONAI_LABEL_AUTH_ENABLE=False).
  • Run the server under a restricted account, not as root, and limit the directories that are writable.
  • Check for signs of compromise: unexpected sitecustomize.py files, unusual training jobs, and newly spawned Python processes — this is the exact chain used in the attack described.
  • When building from source, make sure the build includes the commits from PR #1915 before considering the server patched.

Impact assessment

The highest risk is to research and medical institutions using MONAI Label to annotate medical images, especially when running with the default configuration where authentication is disabled and the server is network-accessible. Root access was obtained on a specific university server, and the outcome depends on the configuration: the account under which the service runs and the privileges available to it. Amazon did not find evidence of theft of patient medical data or impact on clinical systems in the incident described. We have previously looked at vulnerabilities in the AWS ecosystem — this case underscores that threats are spreading to specialized research software as well.

This incident marks a qualitative shift: for the first time, according to Amazon, autonomous AI agents independently discovered and exploited a previously unknown vulnerability in a real-world attack. For organizations using MONAI Label, the top priority is to immediately isolate servers at the network level and enable authentication, without waiting for a confirmed fixed release. For the cybersecurity community as a whole, it highlights the need to treat automated vulnerability discovery with AI as a real — not hypothetical — threat vector in threat models.


CyberSecureFox Editorial Team

The CyberSecureFox Editorial Team covers cybersecurity news, vulnerabilities, malware campaigns, ransomware activity, AI security, cloud security, and vendor security advisories. Articles are prepared using official advisories, CVE/NVD data, CISA alerts, vendor publications, and public research reports. Content is reviewed before publication and updated when new information becomes available.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.