critical9.1
CVE-2024-7776
Open Neural Network Exchange (ONNX) Path Traversal Vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | onnx | < 1.17.0 | 1.17.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Onnx | Onnx | through 1.16.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://huntr.com/bounties/a7a46cf6-1fa0-454b-988c-62d222e83f63
- https://github.com/advisories/GHSA-h36j-8vv3-cj52
- https://nvd.nist.gov/vuln/detail/CVE-2024-7776
- https://github.com/onnx/onnx/pull/6222
- https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f
- https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-10.yaml