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

CVE-2024-7776: Onnx Path Traversal Vulnerability

CVE-2024-7776 is a path traversal flaw in Onnx framework's download_model function that enables arbitrary file overwrite via malicious tar files. This article covers technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-7776 Overview

A path traversal vulnerability exists in the download_model function of the ONNX (Open Neural Network Exchange) framework, affecting versions up to and including 1.16.1. The vulnerability stems from inadequate prevention of path traversal attacks when processing malicious tar files, allowing attackers to overwrite arbitrary files in the user's directory. This can potentially lead to remote command execution through strategic file overwrites.

Critical Impact

Attackers can exploit this vulnerability to overwrite arbitrary files on the target system, potentially leading to remote command execution by modifying configuration files, scripts, or other critical system components.

Affected Products

  • ONNX Framework versions ≤ 1.16.1
  • Applications utilizing the download_model function from the onnx/onnx package
  • Machine learning pipelines that automatically download ONNX models from external sources

Discovery Timeline

  • 2025-03-20 - CVE-2024-7776 published to NVD
  • 2025-03-26 - Last updated in NVD database

Technical Details for CVE-2024-7776

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as a path traversal or directory traversal vulnerability. The download_model function in the ONNX framework fails to properly sanitize file paths contained within tar archives before extraction.

When a user downloads a model from an untrusted or compromised source, a maliciously crafted tar file can contain entries with path traversal sequences (such as ../) in their filenames. Without proper validation, these sequences allow the extraction process to write files outside the intended directory, potentially overwriting critical system files or user data.

The network attack vector combined with no authentication requirements makes this vulnerability particularly dangerous in automated ML pipelines that download models programmatically. An attacker could host a malicious model on a seemingly legitimate source or perform a man-in-the-middle attack to inject a malicious tar archive during the download process.

Root Cause

The root cause lies in the insufficient validation of file paths within tar archives before extraction in the download_model function. The function does not properly check for or sanitize path traversal sequences (../, ..\\, or absolute paths) embedded in the filenames of archived entries. This allows attackers to craft tar files that, when extracted, write content to arbitrary locations on the filesystem rather than the intended model directory.

Attack Vector

The attack can be executed remotely over the network without requiring any authentication or user interaction. An attacker can exploit this vulnerability through several methods:

  1. Malicious Model Hosting: An attacker hosts a crafted ONNX model package containing a malicious tar archive on a public repository or server
  2. Supply Chain Attack: Compromising an existing model repository to replace legitimate models with malicious versions
  3. Man-in-the-Middle: Intercepting network traffic to inject malicious tar content during model downloads

The vulnerability can lead to arbitrary file overwrite, which attackers can leverage to overwrite shell configuration files (.bashrc, .profile), cron jobs, SSH authorized keys, or other executable scripts to achieve remote command execution.

The malicious tar archive would contain entries with path traversal sequences in filenames, such as ../../../.bashrc or ../../../.ssh/authorized_keys, allowing the attacker to write arbitrary content to these sensitive locations during the extraction process.

Detection Methods for CVE-2024-7776

Indicators of Compromise

  • Unexpected file modifications in user home directories, particularly shell configuration files (.bashrc, .profile, .zshrc)
  • New or modified files in .ssh/authorized_keys that were not added by legitimate users
  • Unusual cron job entries or scheduled tasks appearing after model downloads
  • Modified Python scripts or configuration files in unexpected locations
  • Log entries showing model downloads followed by suspicious file system activity

Detection Strategies

  • Monitor file system activity during ONNX model download operations for writes outside expected directories
  • Implement file integrity monitoring (FIM) on critical system and user configuration files
  • Audit network traffic for ONNX model downloads from untrusted or suspicious sources
  • Review application logs for calls to the download_model function with external URLs
  • Deploy endpoint detection rules to identify path traversal patterns in tar extraction operations

Monitoring Recommendations

  • Enable verbose logging for ML pipeline operations that download external models
  • Configure alerts for file modifications to shell configuration files and SSH keys
  • Monitor for process execution from recently modified scripts or configuration files
  • Track network connections to unknown model hosting services
  • Implement baseline monitoring for the ONNX model cache directory to detect anomalous extractions

How to Mitigate CVE-2024-7776

Immediate Actions Required

  • Upgrade the ONNX framework to a patched version when available (versions after 1.16.1)
  • Audit existing code for usage of the download_model function with untrusted sources
  • Restrict model downloads to verified and trusted repositories only
  • Implement network segmentation to limit exposure of systems running vulnerable ONNX versions
  • Consider temporarily disabling automated model download functionality until patched

Patch Information

Organizations should monitor the official ONNX GitHub repository and security advisories for patch releases addressing this vulnerability. The vulnerability was reported through the Huntr Bounty Report. Until an official patch is available, implementing the workarounds below is strongly recommended.

Workarounds

  • Download models manually and verify their integrity before extraction using hash verification
  • Implement a custom wrapper around the download_model function that validates tar entry paths before extraction
  • Use container isolation or sandboxing when downloading and extracting models from external sources
  • Configure application permissions to run with minimal filesystem write access
  • Set up a curated internal model repository with pre-verified models to avoid downloading from external sources
bash
# Example: Verify model integrity before use
# Download model to isolated directory
mkdir -p /tmp/onnx_staging
cd /tmp/onnx_staging

# Verify tar contents for path traversal before extraction
tar -tvf downloaded_model.tar.gz | grep -E '(^\.\./|/\.\./|^\/)' && echo "WARNING: Potentially malicious paths detected"

# Only extract if verification passes
# Consider using a dedicated unprivileged user for model extraction

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

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability1.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • Huntr Bounty Report
  • 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-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