Incident report

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 record

Reported
Severity
High
Vector
Supply Chain
Affected system type
Interoperable ONNX ML Model Toolchains
Reference
CVE-2024-7776
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-7776

Inspect in Interactive Incidents Hub

Defensive lesson

Use Python's tarfile safe extraction filter (`filter='data'`) and validate archive paths before unpacking external ONNX model bundles.

Referenced techniques