Onnx Directory Traversal vulnerability
CVE-2024-27318 · GHSA-whh8-fjgc-qp73 · published 2024-02-23 · updated 2026-03-14
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 1.2%
- Fixed in
- 1.16.0
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Partial
- CISA SSVC
Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data field of the tensor proto can have a path to the file which is outside the model current directory or user-provided directory. The vulnerability occurs as a bypass for the patch added for CVE-2022-25882.
Upgrade onnx to 1.16.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| onnx | PyPI | <= 1.15.0 | 1.16.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: 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
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.