The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-21851

CVE-2026-21851: MONAI Path Traversal Vulnerability

CVE-2026-21851 is a path traversal (Zip Slip) vulnerability in MONAI's download function that allows attackers to extract files to arbitrary locations. This post covers the technical details, affected versions, and mitigation steps.

Updated: January 22, 2026

CVE-2026-21851 Overview

CVE-2026-21851 is a Path Traversal vulnerability, commonly known as "Zip Slip," affecting MONAI (Medical Open Network for AI), an open-source AI toolkit designed for healthcare imaging applications. The vulnerability exists in MONAI's _download_from_ngc_private() function, which uses zipfile.ZipFile.extractall() without proper path validation. This oversight allows attackers to potentially write files to arbitrary locations outside the intended extraction directory when processing maliciously crafted ZIP archives.

Critical Impact

Attackers could exploit this vulnerability to overwrite critical system files or application configurations by crafting malicious ZIP archives with path traversal sequences, potentially compromising the integrity of healthcare AI systems processing medical imaging data.

Affected Products

  • MONAI (Medical Open Network for AI) versions up to and including 1.5.1
  • Systems utilizing the NGC private bundle download functionality
  • Healthcare imaging environments deploying vulnerable MONAI versions

Discovery Timeline

  • 2026-01-07 - CVE CVE-2026-21851 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2026-21851

Vulnerability Analysis

The vulnerability stems from inconsistent security practices within the MONAI codebase. While several download functions in the project properly implement the safe_extract_member() function to validate extracted file paths, the _download_from_ngc_private() function bypasses this protection by directly calling zipfile.ZipFile.extractall(). This creates a Zip Slip vulnerability (CWE-22) where specially crafted ZIP archives containing entries with directory traversal sequences (e.g., ../../../etc/passwd) can write files outside the intended extraction directory.

The attack requires user interaction, as a victim must download and process a malicious archive from an attacker-controlled or compromised NGC private source. Successful exploitation could result in arbitrary file writes, potentially leading to configuration tampering, code injection via overwritten application files, or system compromise depending on the application's runtime privileges.

Root Cause

The root cause is the use of Python's zipfile.ZipFile.extractall() method without implementing path validation to ensure extracted files remain within the designated extraction directory. The MONAI codebase already contained a safe_extract_member() function designed specifically to prevent this type of attack, but it was not utilized in the _download_from_ngc_private() function, creating an inconsistent security posture.

Attack Vector

An attacker could exploit this vulnerability by:

  1. Creating a malicious ZIP archive containing files with path traversal sequences in their names
  2. Hosting the archive on a compromised or malicious NGC private endpoint
  3. Enticing a victim to download a bundle from this source using the vulnerable function
  4. Upon extraction, files would be written to arbitrary locations on the victim's filesystem

The patch addresses this by removing the direct use of the zipfile module in the vulnerable function:

python
 import re
 import urllib
 import warnings
-import zipfile
 from collections.abc import Mapping, Sequence
 from functools import partial
 from pathlib import Path

Source: GitHub Commit Update

Detection Methods for CVE-2026-21851

Indicators of Compromise

  • Unexpected file modifications outside of MONAI's designated bundle extraction directories
  • Files appearing in system directories that match naming patterns of medical imaging bundles
  • Log entries showing bundle downloads from untrusted or unexpected NGC sources
  • Evidence of path traversal sequences (../) in application logs or extracted file paths

Detection Strategies

  • Monitor file system activity during MONAI bundle download operations for writes outside expected directories
  • Implement application-level logging to track all NGC private bundle download operations
  • Use file integrity monitoring (FIM) on critical system files and configuration directories
  • Review network traffic for connections to suspicious or unauthorized NGC endpoints

Monitoring Recommendations

  • Enable comprehensive logging for all MONAI bundle operations in healthcare imaging environments
  • Implement alerts for file writes to sensitive system directories during bundle extraction
  • Regularly audit MONAI configurations to verify trusted NGC source endpoints
  • Deploy endpoint detection and response (EDR) solutions to monitor for suspicious file system activity

How to Mitigate CVE-2026-21851

Immediate Actions Required

  • Update MONAI to a version containing commit 4014c8475626f20f158921ae0cf98ed259ae4d59 or later
  • Audit existing systems for evidence of exploitation by checking for unexpected files outside bundle directories
  • Review and validate all configured NGC private bundle sources for legitimacy
  • Restrict MONAI application permissions to minimize the impact of potential file write attacks

Patch Information

The vulnerability has been addressed in commit 4014c8475626f20f158921ae0cf98ed259ae4d59. Organizations should update to the latest MONAI version that includes this fix. For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-9rg3-9pvr-6p27 and the security patch commit.

Workarounds

  • Avoid using the NGC private bundle download functionality until patched
  • Download bundles manually and verify archive contents before extraction
  • Implement network-level controls to restrict connections to trusted NGC endpoints only
  • Run MONAI applications with least-privilege principles to limit the impact of file write attacks
bash
# Verify MONAI version and check for vulnerability
pip show monai | grep Version

# Update to latest patched version
pip install --upgrade monai

# Alternative: Install directly from the patched commit
pip install git+https://github.com/Project-MONAI/MONAI.git@4014c8475626f20f158921ae0cf98ed259ae4d59

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMonai

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-9rg3-9pvr-6p27
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English