{"cve":"CVE-2024-5187","nvd":{"published":"2024-06-06T19:16:06.100","modified":"2026-06-17T08:15:22.270","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-22"],"references":["https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e","https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e"],"products":["linuxfoundation:onnx"],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-5187","score":0.01168,"percentile":0.67387,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6rq9-53c3-f7vj","url":"https://osv.dev/vulnerability/GHSA-6rq9-53c3-f7vj","summary":"onnx allows Arbitrary File Overwrite in download_model_with_test_data","modified":"2026-06-06T14:45:11.975695563Z","packages":[{"ecosystem":"PyPI","name":"onnx","purl":"pkg:pypi/onnx","ranges":["<1.16.2"],"fixed":["1.16.2"]}]},{"id":"PYSEC-2025-148","url":"https://osv.dev/vulnerability/PYSEC-2025-148","summary":"","modified":"2026-05-21T15:00:22.504009793Z","packages":[{"ecosystem":"PyPI","name":"onnx","purl":"pkg:pypi/onnx","ranges":["<=1.17.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}