
6/6/2024

6/6/2024

27/1/2025
CVE-2024-5187: Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
First published: Thu Jun 06 2024(Updated: )
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.
Credit: security@huntr.dev security@huntr.dev
Affected Software | Affected Version | How to fix |
---|
pip/onnx | <1.16.2 | 1.16.2 |
ONNX | =1.16.0 | |
Never miss a vulnerability like this again
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
Frequently Asked Questions
What is the severity of CVE-2024-5187?
CVE-2024-5187 has been rated as a high severity vulnerability due to its potential for arbitrary file overwrite.
How do I fix CVE-2024-5187?
To resolve CVE-2024-5187, upgrade the onnx package to version 1.17.0 or later, or 1.16.2.
Which versions of ONNX are affected by CVE-2024-5187?
CVE-2024-5187 affects ONNX version 1.16.0 and older versions prior to 1.17.0.
What type of attack does CVE-2024-5187 facilitate?
CVE-2024-5187 facilitates path traversal attacks that can lead to arbitrary file overwriting.
Who is impacted by CVE-2024-5187?
Users and organizations using ONNX version 1.16.0 or earlier in their applications are impacted by CVE-2024-5187.
- agent/title
- agent/weakness
- agent/type
- agent/first-publish-date
- collector/epss-latest
- source/FIRST
- agent/epss
- collector/mitre-cve
- source/MITRE
- agent/severity
- agent/author
- agent/trending
- agent/source
- collector/github-advisory-latest
- source/GitHub
- alias/GHSA-6rq9-53c3-f7vj
- alias/CVE-2024-5187
- agent/software-canonical-lookup
- agent/references
- agent/last-modified-date
- agent/description
- agent/tags
- agent/event
- collector/github-advisory
- agent/softwarecombine
- collector/nvd-cve
- source/NVD
- agent/software-canonical-lookup-request
- collector/nvd-api
- package-manager/pip
- vendor/linuxfoundation
- canonical/onnx
- version/onnx/1.16.0
Contact
SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.coBy using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203