CVE & CISA-KEV Catalog

CVE-2024-5187

HIGH
8.8
CVSS v3
NVD

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.

How to fix

Remediation Available
onnxDebian
Fixed in:1.16.2-1CVE-2024-5187
Fixed in:1.16.2-1CVE-2024-5187
libonnx1t64Ubuntu
Fixed in:1.14.1-2.1ubuntu0.1~esm1USN-8307-1
onnxUbuntu
Fixed in:1.14.1-2.1ubuntu0.1~esm1USN-8307-1
python3-onnxUbuntu
Fixed in:1.14.1-2.1ubuntu0.1~esm1USN-8307-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

1.17%probability of exploitation in 30 days
64thpercentile

Moderate risk: more likely to be exploited than 64% of all known CVEs.

References

Exploit1

Related Vulnerabilities

Other CWE-22 (Path Traversal) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-23897Critical9.8100%KEV + RansomFix
CVE-2023-32315High8.6100%KEVFix
CVE-2022-29464Critical9.8100%KEV + Ransom-
CVE-2021-26086Medium5.3100%KEVFix
CVE-2021-22005Critical9.8100%KEV + RansomFix
CVE-2020-5902Critical9.8100%KEV + RansomFix
Embed a live status badge for CVE-2024-5187
CVE-2024-5187 severity badge

Markdown

[![CVE-2024-5187](https://tridentstack.com/cve/badge/CVE-2024-5187.svg)](https://tridentstack.com/cve/CVE-2024-5187)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-5187"><img src="https://tridentstack.com/cve/badge/CVE-2024-5187.svg" alt="CVE-2024-5187"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.