ModelScan Bypass โ ONNX External Data Path Traversal
Security research only. Do not use maliciously.
Vulnerability
ONNX models can reference external data files via TensorProto.external_data.
When the location field contains path traversal sequences (../../),
onnxruntime resolves them and reads arbitrary files from the filesystem.
ModelScan v0.8.8 does not scan ONNX files at all โ they are silently skipped.
Impact
- Arbitrary file read on the machine loading the model
- Tested: successfully reads /etc/passwd via
../../etc/passwd - ModelScan reports "No issues found" for these models
Affected
- modelscan <= 0.8.8 (no ONNX scanner)
- onnxruntime 1.19.2 (no path traversal validation in external data loader)
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support