Views
No views yet
onnx 1.22.0 wheel:onnx.save_model()all_tensors_to_one_file=False, attacker-controlled tensor names become sidecar filenames and attacker-controlled tensor bytes are appended to the matching local filerepro.py: end-to-end reproducer that builds the malicious ONNX model in memory, saves it to a file-like wrapper, and proves local .env corruption in the current working directoryREADME.md: impact summary and usage notes.env file, builds an ONNX model whose initializer is also named .env, and then calls:1onnx.save_model(
2 model,
3 FileStorage(stream=io.BytesIO(), filename="output.onnx", name="file"),
4 save_as_external_data=True,
5 all_tensors_to_one_file=False,
6 size_threshold=0,
7).name metadata as if it were a real model path, the external-data write is anchored to the current working directory instead of an explicit trusted export directory. The local .env file ends up containing the appended attacker payload.python repro.pywrapper name: filecwd files: ['.env']appended payload: True