Advisory

GHSA-h36j-8vv3-cj52

Also known as: CVE-2024-7776, PYSEC-2025-10

Summary

Open Neural Network Exchange (ONNX) Path Traversal Vulnerability

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-03-20 12:32 UTC
Modified
2025-03-27 17:52 UTC

Affected packages and fixes

onnx

PyPI · All systems

Affected

  • introduced 0, fixed 1.17.0 (ecosystem)

Fixed versions

1.17.0

Fix

  • Fixed version 1.17.0
    pip install --upgrade onnx==1.17.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences