CVE-2024-5187

Public Exploit
Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx

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.

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
CVSS 3.0 •
EPSS 0.72% Top 30%
Third-Party Advisory huntr.com
Affected: onnx onnx/onnx
Published at:
Updated at:

References

Link Tags
https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e third party advisory issue tracking exploit

Frequently Asked Questions

What is the severity of CVE-2024-5187?
CVE-2024-5187 has been scored as a high severity vulnerability.
How to fix CVE-2024-5187?
To fix CVE-2024-5187, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-5187 being actively exploited in the wild?
It is possible that CVE-2024-5187 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-5187?
CVE-2024-5187 affects onnx onnx/onnx.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.