CVE-2024-5187
published 2024-06-06CVE-2024-5187: 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…
PriorityP354high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
1.18%
64.5th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | onnx | < onnx 1.16.2-1 (forky) | onnx 1.16.2-1 (forky) |
| linuxfoundation | onnx | — | — |
| msrc | azl3_pytorch_2.2.2-3_on_azure_linux_3.0 | — | — |
| msrc | azl3_pytorch_2.2.2-7_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_pytorch_2.0.0-8_on_cbl_mariner_2.0 | — | — |
| onnx | onnx | >= 0 < 1.16.2-1 | 1.16.2-1 |
| onnx | onnx | >= 0 < 1.16.2-1 | 1.16.2-1 |
| onnx | onnx | >= 0 < 1.16.2 | 1.16.2 |
| onnx | onnx_onnx | unspecified – latest | — |
| ubuntu | onnx | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.08.8HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian8.8LOW
vendor_msrc8.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2024-5187: A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1
osv·2024-06-06·CVSS 8.8
CVE-2024-5187 [HIGH] CVE-2024-5187: A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1
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.
GHSA
onnx allows Arbitrary File Overwrite in download_model_with_test_data
ghsa·2024-06-06
CVE-2024-5187 [HIGH] CWE-22 onnx allows Arbitrary File Overwrite in download_model_with_test_data
onnx allows Arbitrary File Overwrite in download_model_with_test_data
A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, versions before 1.16.2, allow 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 mal
OSV
onnx allows Arbitrary File Overwrite in download_model_with_test_data
osv·2024-06-06
CVE-2024-5187 [HIGH] onnx allows Arbitrary File Overwrite in download_model_with_test_data
onnx allows Arbitrary File Overwrite in download_model_with_test_data
A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, versions before 1.16.2, allow 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 mal
Ubuntu
ONNX vulnerability
vendor_ubuntu·2026-05-26
CVE-2024-5187 ONNX vulnerability
Title: ONNX vulnerability
Summary: ONNX could be made to overwrite arbitrary files if a user downloaded a
specially crafted model archive.
It was discovered that ONNX did not properly validate paths when extracting
tar archives during model downloads. An attacker could possibly use this
issue to overwrite arbitrary files on the system.
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
vendor_msrc·2024-06-11·CVSS 8.8
CVE-2024-5187 [HIGH] CWE-22 Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
@huntr_ai: @huntr_ai
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
R
Debian
CVE-2024-5187: onnx - A vulnerability in the `download_model_with_test_data` function of the onnx/onnx...
vendor_debian·2024·CVSS 8.8
CVE-2024-5187 [HIGH] CVE-2024-5187: onnx - A vulnerability in the `download_model_with_test_data` function of the onnx/onnx...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: res
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-06-06
Published