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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| onnx | onnx/onnx | unspecified – ≤ latest | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | onnx | 1.16.2-1 | — |
| Debian 13 | onnx | 1.16.2-1 | — |
| Debian 12 | onnx | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | onnx | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pytorch | 2.2.2-5 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | onnx | < 1.17.0 | 1.17.0 | GHSA-h36j-8vv3-cj52 |
| PyPI | onnx | < 1.16.2 | 1.16.2 | PYSEC-2025-10 |