# CVE-2025-51480: onnx allows Arbitrary File Overwrite in download_model_with_test_data

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2024-06-06T21:30:37.000Z
- Modified: 2026-06-17T09:35:37.600Z
- Also known as: GHSA-6rq9-53c3-f7vj, PYSEC-2025-148
- Related: CVE-2024-5187
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- onnx (PyPI): before 1.16.2; up to 1.17.0
- linuxfoundation onnx: 1.17.0

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/onnx/onnx/pull/6959> (exploit, fix, issue-tracking, patch, vendor-advisory, web)
- <https://github.com/onnx/onnx/pull/7040> (exploit, fix, issue-tracking, patch, vendor-advisory, web)
- <https://www.gecko.security/blog/cve-2025-51480> (exploit, evidence, third-party-advisory, web)
- <https://github.com/onnx/onnx> (package, product)
- <https://github.com/advisories/GHSA-6rq9-53c3-f7vj> (advisory, not-applicable)
- <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)

## Sources

- CVE List: [CVE-2025-51480](https://www.cve.org/CVERecord?id=CVE-2025-51480), CVE Terms of Use, modified 2025-07-22
- GitHub Advisory Database: [GHSA-6rq9-53c3-f7vj](https://github.com/advisories/GHSA-6rq9-53c3-f7vj), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2025-51480](https://nvd.nist.gov/vuln/detail/CVE-2025-51480), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-148](https://osv.dev/vulnerability/PYSEC-2025-148), CC-BY-4.0, modified 2026-05-21

---

Page: https://cve.day/CVE-2025-51480 · Whole record: https://cve.day/CVE-2025-51480.json · Rebuilt by cve.day 2026-11-25T22:59:01.575Z
