CVE-2024-5187: linuxfoundation onnx Path Traversal
Vulnerability summary
CVE-2024-5187 is a high (CVSS 8.8) Path Traversal vulnerability in linuxfoundation onnx. EPSS estimates a 1.18% chance of exploitation in the next 30 days, higher than 67.1% of scored vulnerabilities. 3 public exploits are recorded.
Timeline
- 06-06-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.18%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
0.00 pp
From 1.18% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundOnnx
Maturity: poc
Exploit Reference (huntr.com)
Maturity: unknown
Exploit Reference (gecko.security)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Debian1 product
- onnx< 1.16.2-1
Linuxfoundation1 product
- onnx1.17.0 | 1.16.0
Onnx1 product
- onnx/onnx≥ unspecified, ≤ latest
PyPI1 product
- onnx< 1.16.2 | ≤ 1.17.0
Ubuntu1 product
- onnx< 1.14.1-2.1ubuntu0.1~esm1 | All versions (No fix recorded)
5 vendors · 5 products
References
21 links- huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237eWEBREPORTExploitIssue TrackingThird Party Advisory