Advisory

PYSEC-2025-10

Also known as: CVE-2024-7776, GHSA-h36j-8vv3-cj52

Summary

The record has no summary.

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

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Dates

Published
2025-03-20 10:15 UTC
Modified
2026-06-10 17:02 UTC

Affected packages and fixes

onnx

PyPI · All systems

Affected

  • introduced 0, fixed 1.16.2 (ecosystem)

Fixed versions

1.16.2

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences