CVE-2024-5187 Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| linuxfoundation onnx | = 1.16.0; >= 1.16.0 | No fix listed | No fix yet |
| debian/onnx(Debian 13) | < 1.16.2-1 | 1.16.2-1 | Fixed |
| debian/onnx(Debian 14) | < 1.16.2-1 | 1.16.2-1 | Fixed |
| Microsoft azure linux | < 2.2.2-3 | 2.2.2-3 | Fixed |
| onnx/onnx | <= latest | after latest | Fixed |
| pypi onnx(PyPI) | < 1.16.2 | 1.16.2 | Fixed |
| ubuntu/onnx(Ubuntu 24.04) | < 1.14.1-2.1ubuntu0.1~esm1 | 1.14.1-2.1ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 2.2.2-3 | 2.2.2-3 |
| debian/onnx(Debian:13) | < 1.16.2-1 | 1.16.2-1 |
| debian/onnx(Debian:14) | < 1.16.2-1 | 1.16.2-1 |
| pypi onnx(PyPI) | < 1.16.2 | 1.16.2 |
| onnx/onnx | <= latest | No fix listed |
| linuxfoundation onnx | >= 1.16.0 | No fix listed |
| ubuntu/onnx(Ubuntu:24.04) | < 1.14.1-2.1ubuntu0.1~esm1 | 1.14.1-2.1ubuntu0.1~esm1 |
| linuxfoundation onnx | = 1.16.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- pytorch third-party-advisory vendor-advisory
- Debian Security Tracker CVE-2024-5187 vendor-advisory
- huntr.com exploit issue-tracking third-party-advisory
- github.com
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com
- github.com patch
- github.com patch
- github.com
- github.com
- github.com
- www.gecko.security
- Ubuntu CVE tracker vendor-advisory
- USN-8307-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking