New user dealGet a quick pentest for $100.89 $10.89. New user deal.Claim it →
← All cybersecurity posts

AI Agents Found a Path Traversal Zero-Day in 11 Minutes: The MONAI Label Case

Amazon Threat Intelligence reports that autonomous AI agents, not a human operator, found and exploited a previously unknown path traversal flaw in an open-source medical imaging server. The agents went from mapping the application's API to writing arbitrary files in about 11 minutes. The bug class is one every pentester has reported hundreds of times. What changed is the speed and the lack of a person in the loop.

If you run any internal AI, data or annotation server with file upload endpoints, treat this as a prompt to test them for path traversal this week, and to put authentication on anything that does not have it.

Key Takeaways

  • The target was MONAI Label, an open-source server for AI-assisted medical image annotation. Versions 0.8.5 and earlier are affected, and authentication is off by default.
  • The flaw is a classic path traversal (CWE-22) in the image and label upload endpoints: a caller-controlled identifier was joined to a storage path without checking where it landed.
  • According to Amazon, the agents ran on Cairn, an open-source autonomous penetration-testing framework, and the operator only supplied IP addresses and the goal "obtain shell access".
  • Reachable AI tooling with no login is the real exposure. The bug turned it into root on the host.
  • The defensive fix is boring and effective: canonicalize paths, strip directory components, require authentication, and never run these services as root.

What Amazon reported

On September 10, 2026, Amazon Threat Intelligence found a publicly reachable Cairn instance running without authentication. The operator's prompts were in Simplified Chinese and script timestamps were set to China Standard Time, according to Amazon's write-up. Cairn is described there as an open-source autonomous AI penetration-testing framework built as a research tool for defenders. Given a starting point and a plain-language objective, it coordinates several agents to find a path to the goal.

The actor supplied a list of IP addresses and variations of the goal "obtain shell access". Against one target running a medical imaging AI application, Amazon says the agents identified the framework, mapped the API endpoints, found an upload endpoint with a filename parameter, and tested it for path traversal. The parameter was vulnerable. In a later session the agents used the same flaw to write a Python reverse shell to sitecustomize.py, a file Python imports automatically at interpreter startup, then triggered a training API endpoint that spawned a new Python process. That process loaded the payload and opened a reverse shell running as root.

The Cloud Security Alliance's research note identifies the application as MONAI Label and tracks the flaw as GitHub advisory GHSA-qc22-rmgc-vg94. It says the confirmed victims were university research servers and that no public reporting indicates clinical systems or patient data were affected.

The bug itself

Per the advisory as summarized by the CSA note, the PUT /datastore/image endpoint takes an image query parameter and uses it as the image identifier without validation. The datastore code appends a file extension, joins the result to the datastore directory and writes the uploaded content to disk. A value such as ../../../tmp/x escapes the storage directory. The PUT /datastore/label endpoint has the same weakness. The Hacker News reports the flaw is now listed as CVE-2026-133968 with a critical 9.8 score, and that the maintainers merged a source fix on October 19.

The CSA note adds an important detail for defenders: as of its writing, no patched release had been published to PyPI, so the newest installable package was still 0.8.5. If you run this software, the advisory's workarounds matter more than waiting for a version bump.

Nothing about this is exotic. Our own path traversal guide covers the pattern: user input becomes part of a filesystem path, and nothing confirms the final path is inside the intended directory. What makes arbitrary file write dangerous is what is writable. Python's sitecustomize.py, cron entries, SSH authorized_keys and application source files all turn a write into code execution the next time something runs.

Why the agent angle matters

Three things in the Amazon report are worth taking seriously, separately from the headline.

Speed. Eleven minutes from API mapping to arbitrary file write is faster than most alerting pipelines produce a ticket. Amazon's own conclusion is that organizations should favor high-confidence detections that trigger automated response, with humans overseeing outcomes instead of reviewing each action.

Persistence. Amazon notes that agents which failed against a hardened Redis target kept running for 16 hours without breaks. An attacker who pays nothing for patience will try every endpoint and every parameter on every host in the list.

Low skill floor. The operator gave a list of IPs and a goal. The reasoning about which endpoint to probe came from the agents. Bugs that were once safe because nobody bothered to look at an obscure research server are no longer safe for that reason.

None of this makes a new vulnerability class. It makes old classes cheaper to find, which is why default-open internal tooling, with no authentication on by default, is the weak point.

How to test your own services for this

Path traversal in an upload or download endpoint is quick to check manually, and quick to automate. A practical checklist:

  1. Inventory file-handling parameters. Look for filename, file, path, image, id, name, template and label in query strings, JSON bodies and multipart fields, especially on PUT and POST endpoints.
  2. Send traversal sequences. Try ../, ..%2f, %2e%2e/, double-encoded forms and backslash variants, and absolute paths. Use a harmless target such as a uniquely named file in a temp directory, never a config file.
  3. Confirm the write location. If the service writes with a server-side path, check whether your marker file appears outside the storage directory. A 200 response alone proves nothing.
  4. Check the privilege of the process. A traversal bug in a service running as root is a different severity than one running as an unprivileged user in a container.
  5. Look at what else is writable. Interpreter startup files, scheduled jobs, plugin directories and SSH keys are the usual conversion points from file write to code execution.
  6. Test with and without authentication. The MONAI Label advisory says even the low-privilege ANNOTATOR role was enough when authentication was on, so authentication reduces exposure but does not replace the path check.

An agentic scanner can run steps 1 to 3 across a whole estate far faster than a person, which is the same asymmetry attackers now have. SecurityInfinity runs this kind of testing against web apps and APIs as a continuous workflow.

Comparison: manual review vs. agent-driven testing for this bug class

<table> <thead> <tr><th>Aspect</th><th>Manual testing</th><th>Autonomous agent testing</th></tr> </thead> <tbody> <tr><td>Time to map an API</td><td>Hours for a custom API</td><td>Minutes, per Amazon's 11-minute observation</td></tr> <tr><td>Coverage of obscure hosts</td><td>Limited by tester time</td><td>Every host in the list, without breaks</td></tr> <tr><td>Judgment on impact</td><td>Strong, understands business context</td><td>Strong on technical chains, weaker on business context</td></tr> <tr><td>Risk of side effects</td><td>Low, tester controls each request</td><td>Needs scoped targets and guardrails</td></tr> </tbody> </table>

What to change this week

  • Put authentication in front of every AI and ML service, including annotation, training, notebook and inference servers. If the default is "no login", override it.
  • Never expose these services to the internet unless that is the purpose. Use a VPN, an identity-aware proxy or a private network.
  • Fix path handling in your own code. Resolve the final path, verify it stays inside the base directory, and keep only the basename of user-supplied identifiers. The MONAI Label fix reportedly does exactly this and rejects empty or dot-prefixed names.
  • Drop privileges. Run services as a dedicated user in a container with a read-only code directory so a file write cannot rewrite application code or sitecustomize.py.
  • Monitor for unexpected writes to startup files and unexpected child processes spawned by API handlers.
  • Patch or mitigate MONAI Label if you use it: apply the advisory workarounds, enable authentication, and check for earlier compromise, since turning on auth afterwards does not evict an attacker who is already there.

Frequently asked questions

Is the MONAI Label bug the first AI-discovered zero-day?

Amazon says the agents found it with no human oversight beyond the initial instruction, and assessed with high confidence that it was a zero-day. We cannot say whether it is the first such case, only that it is a well-documented one.

Does this affect hospitals and patient data?

The CSA note says confirmed victims were university research servers, and that public reporting does not indicate clinical systems or patient data were affected. Any organization running exposed instances should still treat them as at risk.

Is path traversal still common in 2026?

The MONAI Label case suggests so. It remains a standard finding because new endpoints keep taking filenames and identifiers from callers. The pattern is also documented in the CWE-22 entry used for this advisory.

How can I tell if my service is vulnerable?

Send a harmless traversal marker to every endpoint that accepts a filename or identifier, then check whether the file lands outside the storage directory. Review code for places where user input is joined to a filesystem path without canonicalization.

Should I block AI pentest frameworks?

You cannot block the tools themselves, since they are open source. Focus on removing the bugs and the unauthenticated services they depend on, and on detection that responds automatically.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.