Bug ID 1226089
Summary VUL-0: CVE-2024-5187: python-onnx: arbitrary file overwrite in download_model_with_test_data
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.6
Hardware Other
URL https://smash.suse.de/issue/408993/
OS Other
Status NEW
Severity Major
Priority P5 - None
Component Security
Assignee guillaume.gardet@opensuse.org
Reporter smash_bz@suse.de
QA Contact security-team@suse.de
CC camila.matos@suse.com
Target Milestone ---
Found By Security Response Team
Blocker ---

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


You are receiving this mail because: