ONNX: Malicious ONNX models can crash servers by exploiting unprotected object settings.
CVE-2026-34445 · GHSA-538c-55jv-c5g9 · published 2026-04-01
- Severity
- High
- CVSS score
- 8.6
- Chance of exploitation (EPSS)
- 0.29%
- Fixed in
- 1.21.0
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Partial
- CISA SSVC
The ExternalDataInfo class in ONNX was using Python’s setattr() function to load metadata (like file paths or data lengths) directly from an ONNX model file. The problem? It didn’t check if the "keys" in the file were valid. Because it blindly trusted the file, an attacker could craft a malicious model that overwrites internal object properties.
Upgrade onnx to 1.21.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| onnx | PyPI | <= 1.20.1 | 1.21.0 |
- CriticalLMDeploy has Remote Code Execution by Pickle Deserialization via handle_zmq_recv in lmdeploy/lmdeploy/pytorch/disagg/conn/engine_conn.pylmdeploy
- CriticalLMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploylmdeploy
- CriticalSGLang: Unauthenticated RCE via --enable-custom-logit-processorsglang
- CriticalSGLanG: Multimodal scheduler deserializes untrusted pickle data on 0.0.0.0 ROUTER socketsglang
- Criticaln8n: HTTP Request Node Pagination Prototype Pollution to RCEn8n, n8n, n8n
- Criticaln8n Has an XML Node Prototype Pollution Patch Bypassn8n, n8n, n8n
- HighONNX: TOCTOU arbitrary file read/write in save_external_datonnx
- 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.