Open Neural Network Exchange Symlink Traversal Vulnerability Allowing Arbitrary File Read

Vulnerability

A symlink traversal vulnerability has been identified in Open Neural Network Exchange (ONNX) versions prior to 1.21.0. This vulnerability allows external data loading to read files outside the model directory, leading to arbitrary file read and potential confidentiality breaches. The issue arises because the function responsible for resolving external data locations does not properly handle symlinks, allowing them to escape the intended directory confinement.

Impact

Exploitation of this vulnerability allows for arbitrary file reading from outside the model directory, which could lead to unauthorized access to sensitive information.

Reproduction

The vulnerability can be reproduced by creating a model that includes an external tensor reference. This reference can be manipulated to point to a file outside the model directory by using a symlink. Once the model is loaded, the external data loading function will follow the symlink and read the target file, confirming the vulnerability.

Remediation

Users should update ONNX to version 1.21.0 or later, where this vulnerability has been patched.

Added: Apr 1, 2026, 6:30 PM
Updated: Apr 1, 2026, 6:30 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
2.5
exploitability
4.2
remediation
7.7
relevance
5.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.