Skip to content
OpenAdvisories
High · 8.1 CVE-2024-7776 EUVD-2025-6946GHSA-h36j-8vv3-cj52PYSEC-2025-10

Arbitrary File Overwrite in onnx/onnx

Published Mar 20, 2025 · Updated Mar 20, 2025 · Assigned by @huntr_ai

Description

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.

Affected products

VendorProductAffectedFixed
onnx onnx/onnx unspecified – ≤ latest —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onnx 1.16.2-1 —
Debian 13 onnx 1.16.2-1 —
Debian 12 onnx No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS onnx No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch 2.2.2-5 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onnx < 1.17.0 1.17.0 GHSA-h36j-8vv3-cj52
PyPI onnx < 1.16.2 1.16.2 PYSEC-2025-10

References