CVE-2024-7776: Open Neural Network Exchange (ONNX) Path Traversal Vulnerability

CVE-2024-7776 · Severity: low · CVSS 3.1 · Published 2025-03-20

A vulnerability in the `download_model` function of the onnx/onnx framework, before and including version 1.16.1, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability can be exploited by an attacker to overwrite files in the user's directory, potentially leading to remote command execution.

Technologies: onnx (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-7776 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-7776 being exploited in the wild.
How severe is CVE-2024-7776?
Low severity, with a CVSS score of 3.1, published 20 March 2025.
Which products and versions are affected?
onnx (PyPI) ECOSYSTEM:introduced=0,fixed=1.16.2, ECOSYSTEM:introduced=0,fixed=1.17.0.
Is there a fix for CVE-2024-7776?
Yes. onnx (PyPI): upgrade to 1.16.2, 1.17.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-7776?
Check whether you run onnx (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • onnx (PyPI): upgrade to 1.16.2, 1.17.0 or later
    pip install "onnx>=1.17.0"

Affected products

  • onnx (PyPI) ECOSYSTEM:introduced=0,fixed=1.16.2, ECOSYSTEM:introduced=0,fixed=1.17.0

Identifiers

  • CVE-2024-7776
  • GHSA-h36j-8vv3-cj52
  • PYSEC-2025-10

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.