{"schemaVersion":3,"id":"CVE-2024-5187","aliases":["GHSA-6rq9-53c3-f7vj","CVE-2025-51480","PYSEC-2025-148","UBUNTU-CVE-2024-5187","UBUNTU-CVE-2025-51480","USN-8307-1","DEBIAN-CVE-2024-5187"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-06-06T18:45:19.456Z","modified":"2024-08-01T21:03:10.963Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"CVE.org","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01178,"percentile":0.67185,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01178},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01178,"percentile":0.67185}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01178,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01178,"percentile":0.67185}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ONNX_ONNX","name":"Onnx","source":"github","url":"https://github.com/onnx/onnx/issues/8036","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_860F1280546B1152","name":"Exploit Reference (huntr.com)","source":"reference","url":"https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_AE438489375C2C04","name":"Exploit Reference (gecko.security)","source":"reference","url":"https://www.gecko.security/blog/cve-2025-51480","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"debian","product":"onnx","name":"onnx","label":"onnx","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/onnx","purlType":"deb","versions":[{"text":"< 1.16.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.16.2-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"onnx","name":"onnx","label":"onnx","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/onnx","purlType":"deb","versions":[{"text":"< 1.14.1-2.1ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"< 1.14.1-2.1ubuntu0.1~esm1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"onnx","name":"onnx","label":"onnx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.17.0","noFixRecorded":false,"fixedIn":null},{"text":"1.16.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.17.0 | 1.16.0","eol":null,"hubHref":"/vendor/linuxfoundation/onnx"},{"vendor":"onnx","product":"onnx/onnx","name":"onnx/onnx","label":"onnx/onnx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ latest","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ latest","eol":null,"hubHref":"/vendor/onnx/onnxonnx"},{"vendor":"PyPI","product":"onnx","name":"onnx","label":"onnx","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/onnx","purlType":"pypi","versions":[{"text":"< 1.16.2","noFixRecorded":false,"fixedIn":null},{"text":"≤ 1.17.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.16.2 | ≤ 1.17.0","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e","label":"huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e","hostname":"huntr.com","tags":["WEB","REPORT","Exploit","Issue Tracking","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5187","label":"nvd.nist.gov/vuln/detail/CVE-2024-5187","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/onnx/onnx/issues/6215","label":"github.com/onnx/onnx/issues/6215","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/onnx/onnx/pull/6145","label":"github.com/onnx/onnx/pull/6145","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/onnx/onnx/pull/6222","label":"github.com/onnx/onnx/pull/6222","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/onnx/onnx/pull/6959","label":"github.com/onnx/onnx/pull/6959","hostname":"github.com","tags":["WEB","FIX","REPORT","Exploit","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://github.com/onnx/onnx/pull/7040","label":"github.com/onnx/onnx/pull/7040","hostname":"github.com","tags":["WEB","FIX","REPORT","Exploit","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f","label":"github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/onnx/onnx/commit/3fc3845edb048df559aa2a839e39e95503a0ee34","label":"github.com/onnx/onnx/commit/3fc3845edb048df559aa2a839e39e95503a0ee34","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-6rq9-53c3-f7vj","label":"github.com/advisories/GHSA-6rq9-53c3-f7vj","hostname":"github.com","tags":["Advisory","REPORT","Not Applicable"]},{"url":"https://github.com/onnx/onnx","label":"github.com/onnx/onnx","hostname":"github.com","tags":["PACKAGE","REPORT","Product"]},{"url":"https://github.com/onnx/onnx/releases/tag/v1.16.2","label":"github.com/onnx/onnx/releases/tag/v1.16.2","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-148.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-148.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://www.gecko.security/blog/cve-2025-51480","label":"www.gecko.security/blog/cve-2025-51480","hostname":"www.gecko.security","tags":["WEB","EVIDENCE","REPORT","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-5187","label":"ubuntu.com/security/CVE-2024-5187","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-5187","label":"www.cve.org/CVERecord?id=CVE-2024-5187","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8307-1","label":"ubuntu.com/security/notices/USN-8307-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-51480","label":"ubuntu.com/security/CVE-2025-51480","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-51480","label":"www.cve.org/CVERecord?id=CVE-2025-51480","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-5187","label":"security-tracker.debian.org/tracker/CVE-2024-5187","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51480","label":"nvd.nist.gov/vuln/detail/CVE-2025-51480","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-06-06T18:45:19.456Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-01T21:03:10.963Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:05:11.553Z","stale":false,"partial":false}}