Back to Intelligence

CVE-2026-133968: MONAI Label Path Traversal Actively Exploited — Detection and Remediation Guide

SA
Security Arsenal Team
November 23, 2026
11 min read

CISA added CVE-2026-133968 to the Known Exploited Vulnerabilities (KEV) catalog on 2026-11-23, confirming that a path traversal vulnerability in Project MONAI's MONAI Label is being actively exploited in the wild. This is not a theoretical risk. An unauthenticated remote attacker can write arbitrary files outside the intended datastore directory — and in practical terms, arbitrary file write to a web-accessible or interpreter-loaded location is a short step away from unauthenticated remote code execution.

If your organization runs MONAI Label — and if you're in healthcare, academic medical research, or medical imaging AI development, there's a real chance you do, possibly in a lab segment nobody has patched in months — this needs to move to the top of your remediation queue today. CISA's directive language is unambiguous: apply vendor mitigations in accordance with BOD 26-04 (Prioritizing Security Updates Based on Risk) and CISA's Forensics Triage Requirements, follow applicable cloud-service guidance, or discontinue use of the product if mitigations are unavailable.

That last clause matters. MONAI Label servers are frequently stood up as research infrastructure — exposed for collaboration, running with broad filesystem permissions, and rarely enrolled in enterprise vuln management. That profile is exactly what attackers are hunting.


Technical Analysis

Affected Product

  • Product: Project MONAI — MONAI Label (open-source AI-assisted image labeling server for medical imaging, commonly deployed with 3D Slicer and OHIF integrations)
  • Component: MONAI Label server REST API — the datastore/file-handling endpoints
  • Typical deployment: Python application server (launched via monailabel CLI on Uvicorn/FastAPI), most often on Linux research workstations or GPU servers, frequently listening on TCP/8000 and reachable beyond the lab VLAN
  • Vulnerability class: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory — Path Traversal) leading to arbitrary file write, with a documented path to unauthenticated code execution

How the Vulnerability Works (Defender's View)

MONAI Label exposes HTTP endpoints for uploading, downloading, and managing imaging studies and labels within a configured datastore directory. The vulnerable code path fails to properly canonicalize and constrain attacker-supplied filename/path parameters. An attacker supplies traversal sequences — ../, URL-encoded variants (%2e%2e%2f, ..%2f), or double-encoded forms — and escapes the datastore root.

The attack chain from a defender's perspective:

  1. Recon: Attacker scans for exposed MONAI Label instances (default port 8000, distinctive FastAPI/Uvicorn response headers, /info/ or /datastore/ endpoints answering without authentication).
  2. Traversal write: Unauthenticated HTTP request to a file-handling endpoint with a crafted path parameter writes attacker-controlled content to an arbitrary filesystem location the service account can reach.
  3. Code execution: The written file is placed where it will be executed or loaded — e.g., a web-accessible script under a served directory, a Python module in the application's import path, a sitecustomize.py-style hijack, a cron/systemd unit, or shell profile/SSH authorized_keys for the service account.
  4. Post-exploitation: The attacker lands as the MONAI Label service user — on research boxes, frequently a user with sudo, GPU access, NFS mounts of imaging archives, and lateral-movement potential into clinical or research networks.

Exploitation Status

  • CISA KEV: Confirmed active exploitation as of 2026-11-23.
  • Authentication required: None.
  • Exposure model: Any network-reachable instance. Internet-exposed instances are being hit first; internal instances are at risk from any foothold.

Given KEV listing, treat this as assume-breach until patched: if you find an unpatched, network-reachable instance, you should hunt for compromise on it, not just patch and move on. CISA's Forensics Triage Requirements reference in the KEV entry reinforces this — preserve evidence before you remediate where feasible.


Detection & Response

The highest-fidelity detection surfaces for this attack are: (1) web/API logs containing traversal sequences in requests to MONAI Label endpoints, (2) the MONAI Label Python process writing files outside its datastore root or spawning unexpected child processes, and (3) network egress from the server.

Sigma Rules

YAML
---
title: Path Traversal Attempt Against MONAI Label API
description: Detects HTTP requests to MONAI Label endpoints containing path traversal sequences in URI or parameters. MONAI Label commonly runs on TCP/8000 behind Uvicorn/FastAPI. Tune the URI stems to your deployment if customized.
references:
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-133968
  - https://attack.mitre.org/techniques/T1190/
author: Security Arsenal
date: 2026/11/24
status: experimental
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: webserver
detection:
  selection_uri:
    cs-uri|contains:
      - '/datastore'
      - '/train'
      - '/activelearning'
      - '/info'
  selection_traversal:
    cs-uri|contains:
      - '../'
      - '..\\'
      - '%2e%2e'
      - '..%2f'
      - '..%5c'
      - '%252e%252e'
  condition: selection_uri and selection_traversal
falsepositives:
  - Legitimate clients are extremely unlikely to send traversal sequences to these endpoints; investigate any hit
level: high
---
title: MONAI Label Server Process Spawning Shell or Interpreter
description: Detects the MONAI Label server process (monailabel CLI / uvicorn under Python) spawning a shell, scripting interpreter, or common post-exploitation tooling — consistent with code execution achieved via arbitrary file write (CVE-2026-133968).
references:
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-133968
  - https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/11/24
status: experimental
tags:
  - attack.execution
  - attack.t1059
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentCommandLine|contains:
      - 'monailabel'
      - 'uvicorn'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/python'
      - '/python3'
      - '/curl'
      - '/wget'
      - '/nc'
      - '/ncat'
      - '/chmod'
      - '/base64'
  condition: selection_parent and selection_child
falsepositives:
  - MONAI Label pipelines may legitimately invoke Python subprocesses for training/inference; validate against your baseline and tighten the Image list as needed
level: high
---
title: Arbitrary File Write Outside MONAI Label Datastore
description: Detects file creation by the MONAI Label/uvicorn process outside the configured datastore directory — a direct indicator of successful path traversal exploitation writing payloads to sensitive locations (SSH keys, cron, web roots, Python path hijacks).
references:
  - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-133968
  - https://attack.mitre.org/techniques/T1505/
author: Security Arsenal
date: 2026/11/24
status: experimental
tags:
  - attack.persistence
  - attack.t1505
  - attack.t1098
logsource:
  category: file_event
  product: linux
detection:
  selection_process:
    Image|contains:
      - 'monailabel'
      - 'uvicorn'
  selection_sensitive_path:
    TargetFilename|contains:
      - '/.ssh/authorized_keys'
      - '/etc/cron'
      - '/etc/systemd/system/'
      - '/var/spool/cron'
      - '/site-packages/'
      - '.bashrc'
      - '.bash_profile'
      - 'sitecustomize.py'
      - '/tmp/'
      - '/dev/shm/'
  condition: selection_process and selection_sensitive_path
falsepositives:
  - Rare; MONAI Label has no legitimate reason to write to these locations. Treat all hits as high-priority.
level: critical

KQL — Microsoft Sentinel / Defender

MONAI Label runs on Linux, so the primary telemetry is Syslog/CEF from the host and any reverse-proxy or WAF logs forwarded to Sentinel. This query hunts for traversal attempts against MONAI Label endpoints and suspicious child processes on the host:

KQL — Microsoft Sentinel / Defender
// Hunt 1: Path traversal attempts against MONAI Label API in proxy/WAF/syslog web logs
let traversal = dynamic(["../", "%2e%2e", "..%2f", "..%5c", "%252e%252e", "..\\"]);
union CommonSecurityLog, Syslog
| where TimeGenerated > ago(30d)
| where Message has_any ("/datastore", "/train", "/activelearning", "monailabel")
   or RequestURL has_any ("/datastore", "/train", "/activelearning")
| extend Uri = coalesce(RequestURL, extract(@"(GET|POST|PUT|DELETE|PATCH)\s+(\S+)", 2, Message))
| where Uri has_any (traversal)
| project TimeGenerated, SourceIP, DestinationIP, DestinationPort, Uri, Message, Computer
| sort by TimeGenerated desc;

// Hunt 2: MONAI Label/uvicorn process spawning shells or tooling (via Sysmon-for-Linux or Defender for Endpoint on Linux)
DeviceProcessEvents
| where TimeGenerated > ago(30d)
| where InitiatingProcessCommandLine has_any ("monailabel", "uvicorn")
| where FileName in~ ("sh", "bash", "dash", "curl", "wget", "nc", "ncat", "base64", "chmod", "crontab")
   or (FileName startswith "python" and ProcessCommandLine has_any ("-c", "http.server", "pty.spawn"))
| project TimeGenerated, DeviceName, AccountName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, SHA256
| sort by TimeGenerated desc;

// Hunt 3: Outbound connections from MONAI Label hosts to rare external destinations (staging/C2 after file write)
DeviceNetworkEvents
| where TimeGenerated > ago(7d)
| where InitiatingProcessCommandLine has_any ("monailabel", "uvicorn")
| where RemoteIPType == "Public"
| summarize Connections = count(), Ports = make_set(RemotePort), Destinations = make_set(RemoteUrl) by DeviceName, RemoteIP
| sort by Connections desc;

Velociraptor VQL

Deploy this hunt against Linux servers running MONAI Label to identify the running process, its datastore configuration, unexpected child processes, and established outbound connections:

VQL — Velociraptor
-- CVE-2026-133968 MONAI Label triage: process, children, and network state
LET monai_procs = SELECT Pid, Ppid, Name, Exe, CommandLine, Username, CreateTime
FROM pslist()
WHERE CommandLine =~ '(monailabel|uvicorn)'

LET children = SELECT Pid, Ppid, Name, CommandLine, Username, CreateTime
FROM pslist()
WHERE Ppid IN (SELECT Pid FROM monai_procs)

LET conns = SELECT Pid, Name, Status, Laddr, Raddr
FROM netstat()
WHERE Status =~ 'ESTAB'
  AND Pid IN (SELECT Pid FROM monai_procs)

-- Recently modified files in high-risk locations (payload staging from arbitrary write)
LET staged = SELECT FullPath, Mtime, Size
FROM glob(globs=[
  '/tmp/*', '/dev/shm/*', '/var/tmp/*',
  '/etc/cron.d/*', '/etc/systemd/system/*',
  '/home/*/.ssh/authorized_keys'
], accessor='file')
WHERE Mtime > now() - 86400*7

SELECT * FROM monai_procs
UNION ALL SELECT *, NULL AS Status, NULL AS Laddr, NULL AS Raddr FROM children

For deeper triage, dump the MONAI Label server's access logs (Uvicorn logs, systemd journal for the service unit) and grep for traversal sequences and 2xx responses on file-handling endpoints — a 200 on a request containing %2e%2e against a write endpoint is your strongest exploitation indicator short of finding the dropped file itself.

Remediation / Hardening Script

Run this Bash script on suspected hosts to verify exposure, check for indicators of compromise, and apply interim containment until vendor guidance is applied. Note: verify the current fixed version against the official Project MONAI advisory before upgrading — pin to the vendor's stated patched release, not a guess.

Bash / Shell
#!/bin/bash
# CVE-2026-133968 — MONAI Label exposure check, IOC sweep, and interim containment
set -u

echo "=== [1] Identify MONAI Label processes and listeners ==="
ps aux | grep -Ei 'monailabel|uvicorn' | grep -v grep
ss -tlnp 2>/dev/null | grep -Ei 'monailabel|uvicorn|:8000'

echo "=== [2] Installed MONAI Label version (if pip-managed) ==="
for py in python3 python; do
  command -v "$py" >/dev/null 2>&1 && "$py" -m pip show monailabel 2>/dev/null | grep -E '^(Name|Version|Location)'
done

echo "=== [3] Sweep service logs for path traversal attempts ==="
journalctl --since "60 days ago" --no-pager 2>/dev/null | grep -Ei '(\.\./|%2e%2e|\.\.%2f|\.\.%5c|%252e)' | grep -Ei 'monailabel|uvicorn|datastore' | tail -n 50
[ -d /var/log ] && grep -rEis '(\.\./|%2e%2e|\.\.%2f|\.\.%5c|%252e)' /var/log --include='*.log' 2>/dev/null | grep -Ei 'monailabel|uvicorn|datastore' | tail -n 50

echo "=== [4] Check for suspicious writes in high-risk locations (last 7 days) ==="
find /tmp /dev/shm /var/tmp /etc/cron.d /etc/systemd/system -type f -mtime -7 2>/dev/null
find /home -name 'authorized_keys' -mtime -14 2>/dev/null
find / -name 'sitecustomize.py' -mtime -14 2>/dev/null | head -n 20

echo "=== [5] Interim containment: restrict MONAI Label to localhost via firewall ==="
echo "# Uncomment ONE of the following after confirming your MONAI Label port (default 8000):"
echo "# iptables -A INPUT -p tcp --dport 8000 -s 127.0.0.1 -j ACCEPT"
echo "# iptables -A INPUT -p tcp --dport 8000 -j DROP"
echo "# nft add rule inet filter input tcp dport 8000 ip saddr != 127.0.0.1 drop"

echo "=== [6] Upgrade to vendor-patched release (verify exact version in Project MONAI advisory first) ==="
echo "# python3 -m pip install --upgrade monailabel"
echo "# systemctl restart <your-monailabel-service>"

echo "=== Done. Preserve logs BEFORE restart if KEV-listed instance was internet-exposed. ==="

Remediation

  1. Patch immediately. Upgrade MONAI Label to the fixed release specified in the official Project MONAI security advisory (check the Project MONAI GitHub repository security advisories and the NVD entry for CVE-2026-133968 for the exact patched version). Do not assume a pip upgrade pulled a fixed build — verify the version against the advisory.
  2. Meet the CISA deadline. As a KEV-listed vulnerability, Federal Civilian Executive Branch agencies must remediate per the KEV due date and BOD 26-04 guidance. Private-sector organizations should treat that same date as their internal SLA — KEV deadlines are calibrated to real exploitation tempo.
  3. If you cannot patch: take it offline or isolate it. CISA's language explicitly authorizes discontinuing use where mitigations are unavailable. Short of that, bind the service to localhost or a management VLAN, place it behind an authenticating reverse proxy, and block traversal patterns at the proxy/WAF as a compensating control (defense in depth, not a fix).
  4. Hunt before and after patching. Any instance that was network-reachable while vulnerable should be treated as potentially compromised. Preserve Uvicorn/journal logs and a disk image before restarting services, consistent with CISA's Forensics Triage Requirements. Look specifically for: traversal requests with 2xx responses, files written by the service account outside the datastore, new cron/systemd units, modified authorized_keys, and unexpected outbound connections from the host.
  5. Reduce blast radius permanently. Run MONAI Label under a dedicated low-privilege service account with no sudo, a read-only filesystem outside the datastore, and egress filtering. Segregate research/AI infrastructure from clinical and production networks — medical imaging AI servers sit adjacent to PACS and research data stores, and that's precisely the lateral path an attacker wants.
  6. Inventory the shadow deployments. This is the uncomfortable one. MONAI Label is frequently stood up by researchers without IT involvement. Scan your address space for listeners on 8000 (and common alternates) answering with FastAPI/Uvicorn signatures, and pull lab infrastructure into asset management.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.