{"id":"CVE-2024-7776","published":"2025-03-20T10:10:58Z","modified":"2025-03-20T15:52:00Z","title":"Arbitrary File Overwrite in onnx/onnx","vendor":"onnx","product":"onnx/onnx","tier":"tail","description":{"text":"A vulnerability in the `download_model` function of the onnx/onnx framework, before and including version 1.16.1, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability can be exploited by an attacker to overwrite files in the user's directory, potentially leading to remote command execution.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01532,"percentile":0.7541,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/a7a46cf6-1fa0-454b-988c-62d222e83f63","tags":[]}],"priority":{"score":20.8,"factors":[{"name":"EPSS percentile","points":15.08},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"onnx","affectedVersions":[{"vendor":"onnx","product":"onnx/onnx","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-03-20T15:51:57.316678Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"onnx","vulnerableRanges":["<1.17.0","<1.16.2"],"patched":["1.17.0","1.16.2"],"from":["GHSA-h36j-8vv3-cj52","PYSEC-2025-10"],"provenance":"source"}],"summary":{"text":"The onnx/onnx framework's download_model function, in versions up to and including 1.16.1, fails to adequately prevent path traversal when extracting malicious tar files, creating an arbitrary file overwrite flaw. An attacker who can get a user to download and process a crafted tar archive, which requires user interaction and no prior authentication over the network, can overwrite files in the user's directory, potentially leading to remote command execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:33Z"},"euvd":{"id":"EUVD-2025-6946","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-27318","published":"2024-02-23","fixed":"1.16.0","kev":false,"link":{"from":"CVE-2024-27318","to":"CVE-2024-7776","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:onnx","fromFixed":"1.16.0","toFixed":"1.16.2","daysApart":391}]}},{"cve":"CVE-2024-27319","published":"2024-02-23","fixed":"1.16.0","kev":false},{"cve":"CVE-2024-5187","published":"2024-06-06","fixed":"1.16.2","kev":false},{"cve":"CVE-2024-7776","published":"2025-03-20","fixed":"1.17.0","kev":false},{"cve":"CVE-2026-28500","published":"2026-03-18","fixed":"1.21.0rc1","kev":false,"link":{"from":"CVE-2024-7776","to":"CVE-2026-28500","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:onnx","fromFixed":"1.17.0","toFixed":"1.21.0rc1","daysApart":363}]}},{"cve":"CVE-2026-27489","published":"2026-04-01","fixed":"1.21.0","kev":false},{"cve":"CVE-2026-34445","published":"2026-04-01","fixed":"1.21.0","kev":false}],"package":"PyPI:onnx"}}