onnx allows Arbitrary File Overwrite in download_model_with_test_data
CVE-2024-5187 · GHSA-6rq9-53c3-f7vj · published 2024-06-06 · updated 2026-06-06
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 1.2%
- Fixed in
- 1.16.2
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
A vulnerability in the downloadmodelwithtestdata function of the onnx/onnx framework, versions before 1.16.2, allow for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability enables attackers to overwrite any file on the system, potentially leading to remote code execution, deletion of system, personal, or application files, thus impacting the integrity and availability of the system.
Upgrade onnx to 1.16.2 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| onnx | PyPI | < 1.16.2 | 1.16.2 |
- 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 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.