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
    • 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-2025-51480

CVE-2025-51480: ONNX Path Traversal Vulnerability

CVE-2025-51480 is a path traversal vulnerability in ONNX 1.17.0 that lets attackers overwrite arbitrary files through crafted external_data.location paths. This article covers technical details, affected versions, and mitigations.

Updated: May 11, 2026

CVE-2025-51480 Overview

CVE-2025-51480 is a path traversal vulnerability in the Open Neural Network Exchange (ONNX) library version 1.17.0. The flaw resides in the onnx.external_data_helper.save_external_data function, which fails to sanitize user-controlled external_data.location values. Attackers can supply crafted traversal sequences such as ../ to escape the intended output directory and overwrite arbitrary files on the host. Successful exploitation requires a victim to process a malicious ONNX model, enabling file overwrite that can lead to code execution or system compromise. The issue is tracked under CWE-22 and documented in the GitHub Security Advisory GHSA-6rq9-53c3-f7vj.

Critical Impact

Attackers can overwrite arbitrary files on systems that load malicious ONNX models, leading to integrity loss and potential code execution in machine learning pipelines.

Affected Products

  • Linux Foundation ONNX 1.17.0
  • Python applications using onnx.external_data_helper.save_external_data
  • Machine learning pipelines that load untrusted ONNX models with external data references

Discovery Timeline

  • 2025-07-22 - CVE-2025-51480 published to the National Vulnerability Database (NVD)
  • 2025-10-08 - Last updated in NVD database

Technical Details for CVE-2025-51480

Vulnerability Analysis

The vulnerability exists in ONNX's external data handling logic. ONNX models can store tensor data outside the protobuf file by referencing external files through the external_data.location attribute. The save_external_data function in onnx.external_data_helper writes tensor payloads to the path specified by this attribute.

The function joins the user-supplied location with a base directory without validating that the resulting path stays within that directory. Crafted location values containing ../ sequences resolve to paths outside the intended output folder. This permits an attacker to overwrite arbitrary files writable by the process running the ONNX tooling.

In machine learning workflows, ONNX models often come from third-party model hubs, customer uploads, or shared registries. Processing an untrusted model with external data references is sufficient to trigger the flaw. The impact extends to integrity, confidentiality, and availability when overwritten files include configuration, scripts, or binaries loaded later by the application.

Root Cause

The root cause is missing path canonicalization and containment checks before writing external tensor data. The library trusts the location field embedded in the model rather than enforcing that the final resolved path remains inside the designated external data directory.

Attack Vector

Exploitation requires an attacker to deliver a crafted ONNX model to a victim who invokes a save or conversion routine that calls save_external_data. The attack is network-reachable through model distribution channels and requires user interaction to load the model. No authentication is needed if the application accepts uploaded or remotely fetched models.

For technical details, see the Gecko Security analysis and the upstream fixes in pull request 6959 and pull request 7040.

Detection Methods for CVE-2025-51480

Indicators of Compromise

  • ONNX model files containing external_data.location values with ../, absolute paths, or other traversal sequences
  • Unexpected file writes outside the configured ONNX external data directory during model save or conversion
  • Modified system files, Python site-packages, or configuration files following ONNX model processing

Detection Strategies

  • Statically scan ONNX models before processing and reject any model whose external_data.location resolves outside the intended directory after canonicalization
  • Monitor process file write activity during ONNX operations and alert on writes to paths outside the designated model workspace
  • Audit Python dependency manifests for onnx==1.17.0 and flag environments still running the vulnerable version

Monitoring Recommendations

  • Log all invocations of onnx.external_data_helper.save_external_data along with resolved output paths
  • Enable filesystem auditing on directories adjacent to ML model storage to capture unauthorized writes
  • Track ingress of ONNX models from external sources and correlate with downstream file modifications

How to Mitigate CVE-2025-51480

Immediate Actions Required

  • Upgrade ONNX beyond 1.17.0 to a release containing the fixes from pull request 6959 and pull request 7040
  • Validate and canonicalize external_data.location values in any custom ONNX processing code before invoking save routines
  • Restrict the file system permissions of accounts running ONNX tooling to limit the blast radius of file overwrites

Patch Information

The ONNX maintainers addressed the issue in upstream merge requests #6959 and #7040. Refer to the GitHub Security Advisory GHSA-6rq9-53c3-f7vj for the authoritative fixed version range and upgrade guidance.

Workarounds

  • Reject ONNX models from untrusted sources until the library is upgraded
  • Run ONNX model processing inside a sandbox or container with read-only mounts for sensitive directories
  • Implement a pre-processing filter that rewrites or removes external_data.location fields containing traversal characters before save operations
bash
# Configuration example: upgrade ONNX and verify the installed version
pip install --upgrade "onnx>1.17.0"
python -c "import onnx; print(onnx.__version__)"

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.8

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory

  • GitHub ONNX Repository

  • Gecko Security Blog CVE Analysis
  • Vendor Resources
  • GitHub ONNX Pull Request

  • GitHub ONNX Pull Request
  • Related CVEs
  • CVE-2026-34447: ONNX Path Traversal Vulnerability

  • CVE-2026-34446: ONNX Path Traversal Vulnerability

  • CVE-2026-27489: ONNX Path Traversal Vulnerability

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