HighVulnerability
GHSA-q56x-g2fj-4rj6: ONNX: TOCTOU arbitrary file read/write in save_external_dat
- Identifier
- GHSA-q56x-g2fj-4rj6
- Published
- Record updated
- Affected
- onnx <= 1.20.1
- Fixed in
- 1.21.0
- released March 27, 2026, 5 days before disclosure
Summary
The ONNX save_external_data method in onnx/external_data_helper.py is reported to contain a local TOCTOU flaw, enabling arbitrary file read and write. Between os.path.isfile and open, the code creates no atomic file and does not use O_NOFOLLOW, so an attacker can swap in a symlink and overwrite victim files under the same privilege scope. A possible path validation bypass on Windows, using absolute paths such as C:\ with a single path part, is described but not verified by the reporter.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- onnxPyPINo LLM dependency detected · 18 tracked dependents
Related items
- CriticalGHSA-9x8x-crjq-g64h: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesSimilar attack · GitHub Advisory Database
- HighGHSA-24pw-rf5p-mgp7: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP modeSimilar attack · GitHub Advisory Database
- HighGHSA-m932-63jc-4jqq: k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool executionSimilar attack · GitHub Advisory Database
- HighGHSA-3mgh-93r5-r7jf: CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCESimilar attack · GitHub Advisory Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSimilar attack · GitHub Advisory Database