Time-of-check Time-of-use (TOCTOU) Race Condition in onnx - #VU128171
Published: April 27, 2026
onnx
Detailed vulnerability description
The vulnerability allows a remote attacker to overwrite arbitrary files.
The vulnerability exists due to time-of-check time-of-use race condition in save_external_data in onnx.external_data_helper.py when saving external tensor data to an external file. A remote attacker can replace the target file with a symlink to overwrite arbitrary files.
User interaction is required to save or re-save a model with external data.