AVID-2026-R1558
Description
Arbitrary File Overwrite in download_model_with_test_data in onnx/onnx (CVE-2024-5187)
Details
A vulnerability in the download_model_with_test_data function of the onnx/onnx framework, version 1.16.0, allows 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. The issue arises from the function’s handling of tar file extraction without performing security checks on the paths within the tar file, as demonstrated by the ability to overwrite the /home/kali/.ssh/authorized_keys file by specifying an absolute path in the malicious tar file.
Reason for inclusion in AVID: The CVE describes a vulnerability in the onnx/onnx library (an AI framework) that allows arbitrary file overwrite via path traversal in tar extraction during model/data handling. This directly affects software used to build/deploy AI systems, representing a software supply-chain risk within general-purpose AI stacks. The issue has clear security implications (potential RCE, data/integrity impact) and is well evidenced by the CVE details and CVSS metrics.
References
Affected or Relevant Artifacts
- Developer: onnx
- Deployer: onnx
- Artifact Details:
| Type | Name |
|---|---|
| System | onnx/onnx |
Impact
AVID Taxonomy Categorization
- Risk domains: Security
- SEP subcategories: S0100: Software Vulnerability
- Lifecycle stages: L06: Deployment
CVSS
| Version | 3.0 |
| Vector String | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Base Score | 8.8 |
| Base Severity | 🔴 High |
| Attack Vector | NETWORK |
| Attack Complexity | 🟢 Low |
| Privileges Required | NONE |
| User Interaction | REQUIRED |
| Scope | UNCHANGED |
| Confidentiality Impact | 🔴 High |
| Integrity Impact | 🔴 High |
| Availability Impact | 🔴 High |
CWE
| ID | Description |
|---|---|
| CWE-22 | CWE-22 Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’) |
Other information
- Report Type: Advisory
- Credits:
- Date Reported: 2024-06-06
- Version: 0.3.3
- AVID Entry