CVE-2024-5187
published high CVSS 3.0 · 8.8Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| onnx | — | onnx/onnxunspecified through latest | Affected | Not stated | @huntr_ai |
| linuxfoundation | — | onnx1.16.0 and later · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Ubuntu | noble | onnx | Advisory build | 1.14.1-2.1ubuntu0.1~esm1 | USN-8307-1 |
| Ubuntu | noble | libonnx-testdata | Advisory build | 1.14.1-2.1ubuntu0.1~esm1 | USN-8307-1 |
| Ubuntu | noble | libonnx1t64 | Advisory build | 1.14.1-2.1ubuntu0.1~esm1 | USN-8307-1 |
| Ubuntu | noble | python3-onnx | Advisory build | 1.14.1-2.1ubuntu0.1~esm1 | USN-8307-1 |
Description
A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability enables attackers to overwrite any file on the system, potentially leading to remote code execution, deletion of system, personal, or application files, thus impacting the integrity and availability of the system. The issue arises from the function's handling of tar file extraction without performing security checks on the paths within the tar file, as demonstrated by the ability to overwrite the `/home/kali/.ssh/authorized_keys` file by specifying an absolute path in the malicious tar file.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| onnx | onnx/onnx | unspecified through latest (affected · custom) | @huntr_ai · cna |
| linuxfoundation | onnx | 1.16.0 and later (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
1Provider assertions
3@huntr_ai · cna
Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 208d3858af3eb0766098f2b0e44617df7d6babd42f5a9fb0f6143db47739923f
- Ingested
- 23 Sep 2026, 08:32:30 UTC
- Source record
- Official CVE record