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

Source: https://junglewise.ai/threats/cve-2024-7776-open-neural-network-exchange-onnx-path-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-03-20  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/onnx). Vendors: [PyPI](https://junglewise.ai/threats/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

  ```sh
  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

## Related threats

- [ONNX memory exhaustion in packed tensor unpacking](https://junglewise.ai/threats/cve-2026-115922-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX null pointer dereference in shape inference](https://junglewise.ai/threats/cve-2026-115921-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX ConvTranspose shape inference denial of service](https://junglewise.ai/threats/cve-2026-115920-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX out-of-bounds read in RNN shape inference](https://junglewise.ai/threats/cve-2026-115919-open-neural-network-exchange-onnx-is-an-open-standard-for)
- [ONNX TOCTOU race condition in save_external_data](https://junglewise.ai/threats/onnx-toctou-race-condition-in-save-external-data-b85422b8)
