ONNX: TOCTOU arbitrary file read/write in save_external_dat
CVE-2026-49114 · GHSA-q56x-g2fj-4rj6 · published 2026-04-01 · updated 2026-09-08
- Severity
- High
- CVSS score
- 7.1
- Chance of exploitation (EPSS)
- 0.16%
- Fixed in
- 1.21.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
The impact may include filesystem injections (e.g. on ssh keys, shell configs, crons) or destruction of files, affecting integrity and availability.
Upgrade onnx to 1.21.0 or later.
1. Atomic file creation 2. Symlink protection 3. Path canonicalization
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| onnx | PyPI | <= 1.20.1 | 1.21.0 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- HighONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.onnx
- Highonnx Vulnerable to Path Traversal via Symlinkonnx
- HighONNX Untrusted Model Repository Warnings Suppressed by silent=True in onnx.hub.load() — Silent Supply-Chain Attackonnx
- HighOpen Neural Network Exchange (ONNX) Path Traversal Vulnerabilityonnx
- Highonnx allows Arbitrary File Overwrite in download_model_with_test_dataonnx
- HighOnnx Directory Traversal vulnerabilityonnx
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.