sanitize_path() fix in ONNX external data loading at tensor_external_data.cpp:44-45.file_util.cpp:107-113 only strips leading /.\\ characters:1const auto start = sanitized_path.find_first_not_of("/.\\");
2return sanitized_path.substr(start);../ sequences are not handled. A location like workspace/../../../etc/passwd starts with w (not stripped), preserving the full traversal path.workspace/../../../etc/passwd.openvino.Core().read_model(), the sanitized path is joined with the model directory, resolving to /etc/passwd.1import openvino as ov
2
3# Load ONNX model with traversal in external data location
4core = ov.Core()
5model = core.read_model("poc_traversal.onnx")
6# OpenVINO attempts to read /etc/passwd as tensor data