CVE-2024-5187: Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
Vulnerability summary
CVE-2024-5187 is a high (CVSS 8.8) vulnerability in linuxfoundation onnx. EPSS estimates a 1.17% chance of exploitation in the next 30 days, higher than 68.4% of scored vulnerabilities. 3 public exploits are recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?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.17%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.17% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
3 foundOnnx
Maturity: poc
Exploit Reference (huntr.com)
Maturity: unknown
Exploit Reference (gecko.security)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
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