INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2024-7776

Open Neural Network Exchange (ONNX) Path Traversal Vulnerability

CVE-2024-7776 ยท 2025-03-20 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Path traversal and file access
Affected
onnx (PyPI)
Gets past
Path restriction
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EPSS
1.5% chance of exploitation in 30 days

How it works, in short

Malicious tar archives with traversal entries bypass extraction checks in download_model, letting attackers overwrite files outside the target directory. (Our summary, written by a model. The source text is below.)

Details

A vulnerability in the download_model function of the onnx/onnx framework, before and including version 1.16.1, allows for arbitrary file overwrite due to inadequate prevention of path traversal attacks in malicious tar files. This vulnerability can be exploited by an attacker to overwrite files in the user's directory, potentially leading to remote command execution.

References

Source: GitHub Advisory Database, used under CC BY 4.0.