CVE-2024-7776CWE-22

Arbitrary File Overwrite in onnx/onnx

High · published March 20, 2025

CVSS v3.0
8.1
EPSS
2%
Percentile
74.6
In the wild
Unconfirmed
What it is

🚨 A sneaky path traversal vulnerability in the ONNX framework could allow attackers to overwrite critical files with just a malicious tar file! ⚡ Think of it like a delivery driver accepting packages without checking the address labels — they could easily deliver your important files to the wrong place, or worse, replace them with something malicious! If exploited, this vulnerability could lead to devastating consequences, including file overwrites in your user directory. An attacker could potentially execute arbitrary code on your system, turning your environment into a playground for chaos!

Put simply

Think of it like a delivery driver accepting packages without checking the address labels — they could easily deliver your important files to the wrong place, or worse, replace them with something malicious! This vulnerability in the `download_model` function allows for path traversal attacks, enabling attackers to manipulate tar files to overwrite arbitrary files within the user's directory, potentially leading to remote command execution.

What to do

If exploited, this vulnerability could lead to devastating consequences, including file overwrites in your user directory. An attacker could potentially execute arbitrary code on your system, turning your environment into a playground for chaos! To protect yourself, upgrade to ONNX version 1.16.2 or later to patch this vulnerability. Additionally, review any file handling practices in your applications to ensure they properly validate and sanitize input paths. You've got this! Secure your environment and fend off those pesky attackers! 🛡️

The record
Technical detail
CVSS v3.0
8.1 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01532 · 74.6th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2025-03-20T10:10Z
EPSS history
Timeline
  • 20 MAR 10:10Z
    Arbitrary File Overwrite in onnx/onnx
    cvelistv5