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-2024-27318

CVE-2024-27318: ONNX Path Traversal Vulnerability

CVE-2024-27318 is a path traversal vulnerability in ONNX that allows attackers to access files outside intended directories through malicious tensor proto paths. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-27318 Overview

CVE-2024-27318 is a Directory Traversal vulnerability affecting the Open Neural Network Exchange (ONNX) package versions up to and including 1.15.0. This vulnerability allows attackers to read arbitrary files outside the intended model directory by manipulating the external_data field within the tensor proto structure. Notably, this flaw serves as a bypass for the security patch previously implemented for CVE-2022-25882, indicating that the original fix was insufficient in preventing all traversal attack vectors.

Critical Impact

Attackers can exploit this vulnerability to access sensitive files outside the model directory, potentially exposing configuration files, credentials, or other confidential data on systems processing untrusted ONNX models.

Affected Products

  • Linux Foundation ONNX versions up to and including 1.15.0
  • Fedora 39 (packages using vulnerable ONNX versions)
  • Fedora 40 (packages using vulnerable ONNX versions)

Discovery Timeline

  • 2024-02-23 - CVE-2024-27318 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2024-27318

Vulnerability Analysis

The vulnerability resides in how ONNX handles external data references within tensor protocol buffer definitions. ONNX models can store large tensor data in external files to keep the main model file manageable. The external_data field in the tensor proto specifies the location of these external data files. However, insufficient path validation allows attackers to craft malicious ONNX models containing path traversal sequences (such as ../) that escape the intended model directory boundaries.

This vulnerability is particularly concerning because it bypasses the security controls implemented in response to CVE-2022-25882, suggesting the original patch did not account for all possible traversal techniques or edge cases. When a victim loads a maliciously crafted ONNX model, the parser follows the traversal path and reads file contents from arbitrary locations on the file system.

Root Cause

The root cause is improper input validation (CWE-22) in the path handling logic for external data references. The validation implemented to address CVE-2022-25882 failed to properly sanitize or restrict file paths specified in the external_data field, allowing attackers to use directory traversal sequences to reference files outside the model's designated directory or user-provided base path. The path normalization and boundary checking mechanisms were incomplete, enabling bypass techniques.

Attack Vector

This vulnerability is exploitable via network-based attacks where a victim is tricked into loading a malicious ONNX model. The attack scenario involves:

  1. An attacker crafts a malicious ONNX model file with the external_data field containing path traversal sequences pointing to sensitive files (e.g., /etc/passwd, configuration files, or application secrets)
  2. The malicious model is distributed to victims through model sharing platforms, supply chain compromise, or social engineering
  3. When the victim's application loads and processes the model, the ONNX library follows the traversal path and attempts to read the specified files
  4. The attacker gains unauthorized access to file contents, leading to information disclosure

The attack requires no authentication or user interaction beyond loading the malicious model, making it exploitable in automated ML pipeline environments where models may be fetched from external sources.

Detection Methods for CVE-2024-27318

Indicators of Compromise

  • ONNX model files containing suspicious external_data paths with ../ or absolute path references
  • Unexpected file access attempts from processes running ONNX-dependent applications
  • Log entries showing file read operations targeting sensitive system files from ML/AI application contexts
  • Model files with external data references pointing outside expected directories

Detection Strategies

  • Implement file integrity monitoring on ONNX model repositories and model storage directories
  • Monitor process behavior for ML applications attempting to access files outside designated model directories
  • Deploy application-level logging to capture and alert on external data path resolution in ONNX model loading
  • Use static analysis tools to scan ONNX models for suspicious external data references before deployment

Monitoring Recommendations

  • Enable audit logging for file system access on systems processing ONNX models
  • Monitor for unusual file read patterns from Python processes or applications using the ONNX library
  • Implement network-level monitoring for downloads of ONNX model files from untrusted sources
  • Set up alerts for access attempts to sensitive configuration files from ML pipeline processes

How to Mitigate CVE-2024-27318

Immediate Actions Required

  • Upgrade ONNX to a version newer than 1.15.0 that includes the security fix
  • Review and validate all ONNX models in use, especially those obtained from external sources
  • Implement strict model provenance verification before loading any ONNX models
  • Apply network segmentation to isolate ML processing systems from sensitive data stores

Patch Information

The Linux Foundation has addressed this vulnerability through a security commit. The fix is available in the ONNX GitHub repository. Users should update to the latest ONNX version that incorporates commit 66b7fb630903fdcf3e83b6b6d56d82e904264a20 or later. Fedora users should apply the updates announced in the Fedora package announcements.

Workarounds

  • Implement application-level path validation before loading ONNX models to reject paths containing traversal sequences
  • Run ONNX model processing in sandboxed or containerized environments with restricted file system access
  • Only load ONNX models from trusted, verified sources with cryptographic signature validation
  • Deploy chroot jails or similar isolation mechanisms for model processing workloads
bash
# Configuration example - Upgrade ONNX using pip
pip install --upgrade onnx

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

# For Fedora users, apply system updates
sudo dnf update python3-onnx

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 Score7.5

  • EPSS Probability0.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • Snyk Python Vulnerability
  • Vendor Resources
  • GitHub Commit Update
  • 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