CVE-2024-7776
A vulnerability in the `download_model` function of the onnx/onnx fram ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Azure Linux (high), Ubuntu (medium).
Description
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | pytorch | 0:2.2.2-5.azl3 |
| debian 11 | onnx | no fix listed |
| debian 12 | onnx | no fix listed |
| debian 13 | onnx | 1.16.2-1 |
| debian 14 | onnx | 1.16.2-1 |
| echo | onnx | 1.16.2-1 |
| pip::GitHub Security Advisory pip | onnx | 1.17.0 |
| rapidfort debian 12 | onnx | 0:1.16.2-1 |
| rapidfort debian 13 | onnx | 0:1.16.2-1 |
| ubuntu 22.04 | onnx | no fix listed |
| ubuntu 24.04 | onnx | no fix listed |
References
- https://github.com/onnx/onnx
- https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f
- https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f%20%28v1.17.0%29
- https://github.com/onnx/onnx/issues/6215
- https://github.com/onnx/onnx/pull/6222
- https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-10.yaml
- https://huntr.com/bounties/a7a46cf6-1fa-454b-988c-62d222e83f63
- https://huntr.com/bounties/a7a46cf6-1fa0-454b-988c-62d222e83f63