Bug 1226089 (CVE-2024-5187) - VUL-0: CVE-2024-5187: python-onnx: arbitrary file overwrite in download_model_with_test_data
Summary: VUL-0: CVE-2024-5187: python-onnx: arbitrary file overwrite in download_model...
Status: NEW
Alias: CVE-2024-5187
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P3 - Medium : Major (vote)
Target Milestone: ---
Assignee: Guillaume GARDET
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/408993/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-5187:8.8:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-07 11:22 UTC by SMASH SMASH
Modified: 2024-06-07 12:15 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-07 11:22:08 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-5187
https://www.cve.org/CVERecord?id=CVE-2024-5187
https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e
https://bugzilla.redhat.com/show_bug.cgi?id=2290806