cbcvebase.
CVE-2024-5187
published 2024-06-06

CVE-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
VendorProductVersion rangeFixed in
debianonnx< onnx 1.16.2-1 (forky)onnx 1.16.2-1 (forky)
linuxfoundationonnx
msrcazl3_pytorch_2.2.2-3_on_azure_linux_3.0
msrcazl3_pytorch_2.2.2-7_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_pytorch_2.0.0-8_on_cbl_mariner_2.0
onnxonnx>= 0 < 1.16.2-11.16.2-1
onnxonnx>= 0 < 1.16.2-11.16.2-1
onnxonnx>= 0 < 1.16.21.16.2
onnxonnx_onnxunspecified – latest
ubuntuonnx

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.