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-27489

CVE-2026-27489: ONNX Path Traversal Vulnerability

CVE-2026-27489 is a path traversal flaw in Open Neural Network Exchange (ONNX) that exploits symlinks to access unauthorized files. This article covers the technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-27489 Overview

CVE-2026-27489 is a path traversal vulnerability in Open Neural Network Exchange (ONNX), an open standard for machine learning interoperability. Prior to version 1.21.0, attackers can exploit symlink handling to read arbitrary files outside the model or user-provided directory. This vulnerability enables unauthorized access to sensitive system files, potentially exposing credentials, configuration data, and other confidential information.

Critical Impact

Attackers can leverage this path traversal vulnerability to read arbitrary files on the system by crafting malicious ONNX models with symlinks pointing to sensitive directories, potentially leading to information disclosure of credentials and system configurations.

Affected Products

  • Open Neural Network Exchange (ONNX) versions prior to 1.21.0
  • Applications using ONNX library for ML model loading and processing
  • ML pipelines and inference systems that consume untrusted ONNX models

Discovery Timeline

  • 2026-04-01 - CVE CVE-2026-27489 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-27489

Vulnerability Analysis

This vulnerability falls under CWE-23 (Relative Path Traversal) and affects how ONNX handles external data file references within ML models. The root cause lies in insufficient validation of symlinks within model directories. When ONNX loads a model with external tensor data, it resolves file paths to locate the data files. However, prior to the fix, the implementation only checked whether the final path component was a symlink, failing to account for symlink traversal through parent directory components.

An attacker can craft a malicious ONNX model containing a path like symlink_subdir/real_file.data where symlink_subdir is a symbolic link pointing to a sensitive directory (e.g., /etc/). The existing is_symlink() check would pass because the final component real_file.data is not itself a symlink, but the resolved path would escape the intended model directory.

Root Cause

The vulnerability stems from incomplete symlink validation in the external data loading mechanism. The original implementation used is_symlink() which only validates the final component of a file path. This approach fails to detect path traversal when symlinks exist in parent directory components of the path. Additionally, the code lacked canonical path containment checks to ensure resolved paths remain within the designated base directory.

Attack Vector

The attack requires network access to deliver a malicious ONNX model to a vulnerable system. An attacker can:

  1. Create a malicious ONNX model with external data references
  2. Include symlinks in the model archive pointing to sensitive system directories
  3. Reference files through these symlinks using paths that bypass the final-component symlink check
  4. When the victim loads the model, sensitive files are read as "external tensor data"

The following security patch demonstrates the fix implemented in onnx/checker.cc:

text
         data_path_str,
         ", but it is a symbolic link.");
   }
+  // Verify the resolved path stays within the base directory to prevent
+  // path traversal via symlinks in parent directory components.
+  // is_symlink() only checks the final component; a path like
+  // "symlink_subdir/real_file.data" would bypass it.
+  if (data_path_str[0] != '#') {
+    std::error_code ec;
+    auto canonical_base = std::filesystem::weakly_canonical(base_dir_path, ec);
+    if (ec) {
+      fail_check(
+          "Data of TensorProto ( tensor name: ",
+          tensor_name,
+          ") references external data at ",
+          data_path_str,
+          ", but the model directory path could not be resolved.");
+    }
+    auto canonical_data = std::filesystem::weakly_canonical(data_path, ec);
+    if (ec) {
+      fail_check(
+          "Data of TensorProto ( tensor name: ",
+          tensor_name,
+          ") references external data at ",
+          data_path_str,
+          ", but the data path could not be resolved.");
+    }
+    auto canonical_base_native = canonical_base.native();
+    auto canonical_data_native = canonical_data.native();
+    if (!canonical_base_native.empty() && canonical_base_native.back() != std::filesystem::path::preferred_separator) {

Source: GitHub Commit Update

The Python validation function added in onnx/external_data_helper.py implements comprehensive security checks:

python
             self.length = int(self.length)


+def _validate_external_data_path(
+    base_dir: str,
+    data_path: str,
+    tensor_name: str,
+    *,
+    check_exists: bool = True,
+) -> str:
+    """Validate that an external data path is safe to open.
+
+    Performs three security checks:
+    1. Canonical path containment — resolved path must stay within base_dir.
+    2. Symlink rejection — final-component symlinks are not allowed.
+    3. Hardlink count — files with multiple hard links are rejected.
+
+    Args:
+        base_dir: The model base directory that data_path must be contained in.
+        data_path: The external data file path to validate.
+        tensor_name: Tensor name for error messages.
+        check_exists: If True (default), check hardlink count. Set to False
+            for save-side paths where the file may not exist yet.
+
+    Returns:
+        The validated data_path (unchanged).
+
+    Raises:
+        onnx.checker.ValidationError: If any security check fails.
+    """

Source: GitHub Commit Update

Detection Methods for CVE-2026-27489

Indicators of Compromise

  • ONNX model files containing symbolic links in their extracted contents
  • Model archives with external data references pointing to paths containing .. or absolute paths
  • File access attempts to sensitive system files (e.g., /etc/passwd, /etc/shadow, credential files) from ML inference processes
  • Unusual file read operations from processes loading ONNX models outside their working directory

Detection Strategies

  • Monitor file system access patterns from ML inference applications for reads outside designated model directories
  • Implement file integrity monitoring on sensitive system directories to detect unauthorized access
  • Deploy application-level logging to track ONNX model loading operations and associated file accesses
  • Use SentinelOne's behavioral AI to detect anomalous file access patterns from ML workloads

Monitoring Recommendations

  • Enable audit logging for file access operations on systems running ONNX-based inference
  • Configure alerts for symlink creation in model staging directories
  • Monitor network traffic for delivery of untrusted ONNX model files
  • Implement content inspection for ONNX models entering the environment to detect embedded symlinks

How to Mitigate CVE-2026-27489

Immediate Actions Required

  • Upgrade ONNX to version 1.21.0 or later immediately across all environments
  • Audit existing ONNX models in use for suspicious symlinks or external data references
  • Implement input validation for ONNX models from untrusted sources before loading
  • Restrict file system permissions for ML inference processes to limit potential impact

Patch Information

The vulnerability has been patched in ONNX version 1.21.0. The fix implements three comprehensive security checks: canonical path containment verification to ensure resolved paths stay within the base directory, symlink rejection for final-component symlinks, and hardlink count validation to reject files with multiple hard links. For detailed patch information, refer to the GitHub Commit and the GitHub Security Advisory GHSA-3r9x-f23j-gc73.

Workarounds

  • Run ONNX model loading in sandboxed environments with restricted file system access
  • Implement pre-processing validation to scan ONNX models for symlinks before loading
  • Use containerization with read-only mounts for sensitive directories to prevent unauthorized access
  • Deploy network segmentation to isolate ML inference systems from sensitive data stores
bash
# Configuration example - Upgrade ONNX to patched version
pip install --upgrade onnx>=1.21.0

# Verify installed version
python -c "import onnx; print(onnx.__version__)"

# Scan model directory for symlinks before loading
find /path/to/models -type l -ls

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechOnnx

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-23
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3r9x-f23j-gc73
  • Related CVEs
  • CVE-2026-34447: ONNX Path Traversal Vulnerability

  • CVE-2026-34446: ONNX Path Traversal Vulnerability

  • CVE-2024-7776: Onnx Path Traversal Vulnerability

  • CVE-2024-27318: ONNX Path Traversal Vulnerability
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