Documented Incident · INC-2024-7776 · High severity
ONNX download_model Tar Archive Path Traversal Arbitrary File Overwrite
CVE-2024-7776 (published March 20, 2025) affected the `onnx` Python framework (`<= 1.16.1`) within its `download_model` archive extraction helper. Because tar archives retrieved from model hubs were extracted without validating member paths against directory traversal (`../`) or absolute path prefixes, a maliciously crafted ONNX model bundle could overwrite arbitrary files on the victim's host filesystem. Overwriting SSH keys, startup scripts, or Python packages escalated immediately to code execution during ML deployment workflows. Maintainers patched safe tar extraction checks in subsequent ONNX releases.
Incident dossier metadata
- Case ID
INC-2024-7776- Classification
- Incident
- Date
- Severity
- High
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Supply Chain
- System type
- Interoperable ONNX ML Model Toolchains
- CVE / reference
CVE-2024-7776- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-7776
Defensive takeaway
Use Python's tarfile safe extraction filter (`filter='data'`) and validate archive paths before unpacking external ONNX model bundles.
Mapped AI security techniques
- Supply Chain Compromise: Model Repository AML.T0010.003
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Exploit Automated Artifact Processing Pipeline AML.T0119
Mapped defensive controls
- Verify AI Artifacts AML.M0014
- Vulnerability Scanning AML.M0016
- Maintain an AI Bill of Materials AML.M0023
Source citation records
- NVD Record CVE-2024-7776: ONNX download_model Tar Path Traversal · NIST National Vulnerability Database (NVD) ·