CVE-2025-51480 Path traversal in n/a
Attackers can overwrite arbitrary files by supplying crafted external data paths in the ONNX library, bypassing directory restrictions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-51480?
CVE-2025-51480 is a high-severity path traversal vulnerability in n/a, published on 22 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2025-51480?
It affects 1 product.
Products include Linuxfoundation Onnx.
How do I fix CVE-2025-51480?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-51480 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51480 exists.
Other vulnerabilities in n/a
- CVE-2024-5187 Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx
- CVE-2026-27489 ONNX: Path Traversal via Symlink
- CVE-2026-34445 ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.
- CVE-2026-28500 ONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attack
- CVE-2022-25882 Directory Traversal in onnx
Sources
Also known as AZL-65658, AZL-65661, GHSA-wj32-g77g-8289, UBUNTU-CVE-2025-51480.