Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-34445

CVE-2026-34445: ONNX Remote Code Execution Vulnerability

CVE-2026-34445 is a remote code execution flaw in Open Neural Network Exchange (ONNX) caused by unsafe use of setattr() when loading model metadata. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-34445 Overview

A critical attribute injection vulnerability has been identified in the Open Neural Network Exchange (ONNX) framework, an open standard for machine learning interoperability. Prior to version 1.21.0, the ExternalDataInfo class in ONNX used Python's setattr() function to load metadata (such as file paths or data lengths) directly from an ONNX model file without validating whether the keys in the file were legitimate attributes. This improper input validation allows an attacker to craft a malicious model file that overwrites internal object properties, potentially leading to object state corruption and denial of service conditions.

Critical Impact

Attackers can exploit this vulnerability by distributing malicious ONNX model files that corrupt internal object states, leading to denial of service or potentially more severe consequences when machine learning applications load untrusted models.

Affected Products

  • Open Neural Network Exchange (ONNX) versions prior to 1.21.0
  • Applications and ML pipelines that load external ONNX model files
  • Machine learning frameworks integrating ONNX model loading functionality

Discovery Timeline

  • April 1, 2026 - CVE-2026-34445 published to NVD
  • April 1, 2026 - Last updated in NVD database

Technical Details for CVE-2026-34445

Vulnerability Analysis

This vulnerability stems from CWE-20 (Improper Input Validation) in the ONNX library's model loading mechanism. The ExternalDataInfo class is responsible for parsing metadata from ONNX model files when handling external data references. When loading a model, the class iterates through key-value pairs in the file and uses Python's setattr() function to dynamically assign these values to object attributes without any validation of the key names.

An attacker can exploit this behavior by crafting a malicious ONNX model file containing specially crafted metadata keys that correspond to internal object properties or Python dunder (double underscore) methods. When the vulnerable ONNX library loads this malicious model, the attacker-controlled keys overwrite legitimate internal attributes, corrupting the object's state and potentially disrupting normal program execution.

Root Cause

The root cause is the absence of input validation when dynamically setting object attributes in the ExternalDataInfo class. Python's setattr() function allows arbitrary attribute assignment, and without an allowlist of permitted attribute names, malicious input can manipulate object internals. The fix introduced in version 1.21.0 adds proper validation through a new _validate_external_data_file_bounds() method that sanitizes and validates external data before processing.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can distribute a maliciously crafted ONNX model file through various channels such as model repositories, supply chain attacks on ML pipelines, or direct delivery to applications that accept user-uploaded models. When the target application loads the malicious model using a vulnerable version of ONNX, the attribute injection payload executes automatically during the model parsing phase.

python
                 open_flags |= os.O_NOFOLLOW
             fd = os.open(external_data_file_path, open_flags)
             with os.fdopen(fd, "rb") as data_file:
-                if info.offset is not None:
-                    data_file.seek(info.offset)
-
-                raw_data = (
-                    data_file.read(info.length)
-                    if info.length is not None
-                    else data_file.read()
+                raw_data = ext_data._validate_external_data_file_bounds(
+                    data_file, info, tensor.name
                 )

                 dtype = onnx.helper.tensor_dtype_to_np_dtype(tensor.data_type)

Source: GitHub Commit e30c6935d67cc3eca2fa284e37248e7c0036c46b

Detection Methods for CVE-2026-34445

Indicators of Compromise

  • Unusual ONNX model files containing non-standard metadata keys or Python dunder attribute names
  • Application crashes or unexpected behavior when loading ONNX models from untrusted sources
  • Error logs indicating attribute assignment failures or type mismatches in ONNX model loading operations

Detection Strategies

  • Implement file integrity monitoring for ONNX model files in production ML pipelines
  • Deploy application logging to capture model loading events and any exceptions during the ExternalDataInfo initialization phase
  • Use static analysis tools to scan ONNX model files for suspicious metadata key patterns before loading

Monitoring Recommendations

  • Monitor ML application logs for unexpected exceptions during model deserialization
  • Track and alert on ONNX library version usage across your infrastructure to identify vulnerable deployments
  • Implement network monitoring for downloads of ONNX model files from untrusted sources

How to Mitigate CVE-2026-34445

Immediate Actions Required

  • Upgrade ONNX to version 1.21.0 or later immediately across all affected systems
  • Audit your ML pipelines to identify all locations where ONNX models are loaded from external or untrusted sources
  • Implement model validation and integrity checks before loading any ONNX models in production environments

Patch Information

This vulnerability has been patched in ONNX version 1.21.0. The fix introduces the _validate_external_data_file_bounds() method in onnx/model_container.py which properly validates external data file bounds and sanitizes metadata before attribute assignment. For detailed patch information, refer to the GitHub Security Advisory GHSA-538c-55jv-c5g9 and the associated pull request.

Workarounds

  • Restrict ONNX model loading to trusted, verified sources only until patching is complete
  • Implement model file validation scripts that check for suspicious metadata keys before loading
  • Consider sandboxing ML model loading operations in isolated environments with limited privileges
bash
# Upgrade ONNX to patched version
pip install --upgrade onnx>=1.21.0

# Verify installed version
pip show onnx | grep Version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOnnx

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.04%

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

  • GitHub Pull Request Discussion

  • GitHub Security Advisory GHSA-538c-55jv-c5g9
  • Related CVEs
  • CVE-2026-34447: ONNX Path Traversal Vulnerability

  • CVE-2026-34446: ONNX Path Traversal Vulnerability

  • CVE-2026-27489: ONNX Path Traversal Vulnerability

  • CVE-2026-28500: Linuxfoundation ONNX Auth Bypass Flaw
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