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

CVE-2026-34446: ONNX Path Traversal Vulnerability

CVE-2026-34446 is a path traversal flaw in Open Neural Network Exchange (ONNX) that exploits hardlink handling in onnx.load to bypass security checks. This post covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-34446 Overview

CVE-2026-34446 is a Path Traversal vulnerability in Open Neural Network Exchange (ONNX), an open standard for machine learning interoperability. Prior to version 1.21.0, the onnx.load function contains a security flaw where path traversal protections check for symbolic links but fail to account for hardlinks. Because hardlinks appear as regular files on the filesystem, attackers can bypass the existing symlink checks to access files outside the intended directory structure.

Critical Impact

Attackers can leverage hardlinks to bypass path traversal protections in onnx.load, potentially accessing sensitive files outside the model directory and exposing confidential data.

Affected Products

  • Open Neural Network Exchange (ONNX) versions prior to 1.21.0

Discovery Timeline

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

Technical Details for CVE-2026-34446

Vulnerability Analysis

This vulnerability affects the external data file handling mechanism in ONNX's model loading functionality. When loading ONNX models that reference external data files, the onnx.load function performs security checks to prevent path traversal attacks. However, the implementation only checks for symbolic links using filesystem APIs like is_symlink(), which only examines the final path component.

The fundamental issue is that hardlinks are indistinguishable from regular files at the filesystem level. Unlike symlinks, which contain a pointer to another path, hardlinks create an additional directory entry pointing directly to the same inode as the original file. This means standard symlink detection methods completely miss hardlink-based path traversal attempts.

An attacker could craft a malicious ONNX model that references external data through a hardlink pointing to sensitive files outside the model directory (such as configuration files, credentials, or other sensitive data), thereby achieving unauthorized file access.

Root Cause

The root cause is an incomplete security check in the external data path validation logic. The code relied solely on is_symlink() checks to prevent path traversal, but this approach only validates the final component of the path and does not detect hardlinks. Hardlinks look exactly like regular files to the filesystem, so they bypass the symlink-only detection entirely.

Additionally, the original implementation did not perform canonical path containment validation to ensure resolved paths remain within the base model directory, leaving the door open for various path traversal techniques.

Attack Vector

The attack requires local access and user interaction (opening a malicious ONNX model file). An attacker would need to:

  1. Create a hardlink within a malicious model directory that points to a sensitive file outside the intended model path
  2. Reference this hardlink as external tensor data in the ONNX model
  3. Convince a victim to load the malicious model using onnx.load

When the victim loads the model, the hardlink bypasses symlink checks, and the application reads the sensitive file as if it were legitimate model data, potentially exposing confidential information.

The security patch addresses this by implementing three security checks:

python
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

The C++ implementation adds canonical path containment validation:

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

Detection Methods for CVE-2026-34446

Indicators of Compromise

  • Presence of files with elevated hardlink counts (greater than 1) in ONNX model directories
  • ONNX models with external data references pointing to paths outside expected model directories
  • Unexpected file access patterns when loading ONNX models, particularly accessing sensitive system files

Detection Strategies

  • Monitor filesystem operations during ONNX model loading for access to files outside the model directory
  • Implement file integrity monitoring on sensitive directories that may be targeted via hardlink traversal
  • Use application-level logging to track external data file paths resolved by onnx.load
  • Deploy endpoint detection rules to identify hardlink creation in directories containing ONNX models

Monitoring Recommendations

  • Enable audit logging for file access operations in environments processing untrusted ONNX models
  • Monitor for the creation of hardlinks in directories where ONNX models are stored or processed
  • Track onnx.load operations and validate that all resolved external data paths remain within expected boundaries
  • Implement SentinelOne Singularity platform rules to detect anomalous file access patterns during ML model loading

How to Mitigate CVE-2026-34446

Immediate Actions Required

  • Upgrade ONNX to version 1.21.0 or later immediately
  • Audit existing ONNX models for external data references that may indicate malicious content
  • Restrict loading of ONNX models to trusted sources only
  • Implement filesystem-level restrictions to prevent hardlink creation in model directories

Patch Information

The vulnerability has been patched in ONNX version 1.21.0. The fix implements comprehensive path validation including canonical path containment checks, symlink rejection, and hardlink count verification. Organizations should upgrade to the patched version immediately.

For detailed patch information, see the GitHub Security Advisory and the commit that addresses this vulnerability.

Workarounds

  • Only load ONNX models from trusted and verified sources
  • Run ONNX model processing in sandboxed environments with restricted filesystem access
  • Implement pre-loading validation scripts that check for hardlinks in model directories before processing
  • Use container isolation to limit the impact of potential path traversal attacks
bash
# Check for hardlinks in ONNX model directories before processing
# Files with link count > 1 may be hardlinks
find /path/to/model/directory -type f -links +1 -ls

# Verify ONNX version is patched
pip show onnx | grep Version
# Should show 1.21.0 or later

# Upgrade ONNX to patched version
pip install --upgrade onnx>=1.21.0

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

  • SeverityMEDIUM

  • CVSS Score4.7

  • EPSS Probability0.01%

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

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34447: ONNX Path Traversal Vulnerability

  • CVE-2026-27489: ONNX Path Traversal Vulnerability

  • CVE-2024-7776: Onnx Path Traversal Vulnerability

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