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

Inspect INC-2024-7776 in Interactive Incidents & Cases Hub

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

Mapped defensive controls

Source citation records