# CVE-2024-5187: onnx: A vulnerability in the `download_model_with_test_data` function of the onnx/onnx framework, version 1.16.0, allows fo...

CVE-2024-5187 is fixed in 4 products on 1 platform, first by libonnx-testdata 1.14.1-2.1ubuntu0.1~esm1, released June 6, 2024. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-5187
- Priority: High
- CVSS: 8.8 (high)
- EPSS: 0.0117
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 6, 2024

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libonnx-testdata Ubuntu 24.04.5 LTS (noble) | 1.14.1-2.1ubuntu0.1~esm1 | [libonnx-testdata 1.14.1-2.1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libonnx-testdata-1.14.1-2.1ubuntu0.1-esm1.md) | Jun 6, 2024 |
| Linux | libonnx1t64 Ubuntu 24.04.5 LTS (noble) | 1.14.1-2.1ubuntu0.1~esm1 | [libonnx1t64 1.14.1-2.1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libonnx1t64-1.14.1-2.1ubuntu0.1-esm1.md) | Jun 6, 2024 |
| Linux | onnx Debian 13.5 (trixie) | 1.16.2-1 | [DEBIAN-CVE-2024-5187](https://patchblox.com/security/data/fix/linux/debian-cve-2024-5187.md) | Jun 6, 2024 |
| Linux | onnx Debian 14 | 1.16.2-1 | [DEBIAN-CVE-2024-5187](https://patchblox.com/security/data/fix/linux/debian-cve-2024-5187.md) | Jun 6, 2024 |
| Linux | python3-onnx Ubuntu 24.04.5 LTS (noble) | 1.14.1-2.1ubuntu0.1~esm1 | [python3-onnx 1.14.1-2.1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-python3-onnx-1.14.1-2.1ubuntu0.1-esm1.md) | Jun 6, 2024 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
