CVE-2025-51480
HIGH 8.8CVSS 3.1onnx allows Arbitrary File Overwrite in download_model_with_test_data
Path Traversal vulnerability in onnx.external_data_helper.save_external_data in ONNX 1.17.0 allows attackers to overwrite arbitrary files by supplying crafted external_data.location paths containing traversal sequences, bypassing intended directory restrictions.
- Published
- 22 Jul 2025
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- CVE-2024-5187GHSA-6rq9-53c3-f7vjPYSEC-2025-148
- Sources
- NVDJSONOSV GHSA-6rq9-53c3-f7vjJSONOSV PYSEC-2025-148JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | onnxcpe:2.3:a:linuxfoundation:onnx:1.17.0:*:*:*:*:*:*:* |
= 1.17.0 | |
| OSV | PyPI | onnx | < 1.16.2 | 1.16.2 |
| OSV | PyPI | onnx | <= 1.17.0 |
References
- https://github.com/advisories/GHSA-6rq9-53c3-f7vj · Not Applicable, ADVISORY
- https://github.com/onnx/onnx · Product, PACKAGE
- https://github.com/onnx/onnx/pull/6959 · Exploit, Issue Tracking, Patch, Vendor Advisory, WEB, FIX
- https://github.com/onnx/onnx/pull/7040 · Exploit, Issue Tracking, Patch, Vendor Advisory, WEB, FIX
- https://www.gecko.security/blog/cve-2025-51480 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2024-5187 · ADVISORY
- https://github.com/onnx/onnx/issues/6215 · WEB
- https://github.com/onnx/onnx/pull/6145 · WEB
- https://github.com/onnx/onnx/pull/6222 · WEB
- https://github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f · WEB
- https://github.com/onnx/onnx/commit/3fc3845edb048df559aa2a839e39e95503a0ee34 · WEB
- https://github.com/onnx/onnx/releases/tag/v1.16.2 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-148.yaml · WEB
- https://huntr.com/bounties/50235ebd-3410-4ada-b064-1a648e11237e · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 22 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jul 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Jun 2024)