Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. onnx
  4. ›
  5. CVE-2024-7776

CVE-2024-7776: Open Neural Network Exchange (ONNX) Path Traversal Vulnerability

March 20, 2025 (updated March 27, 2025)

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

  • github.com/advisories/GHSA-h36j-8vv3-cj52
  • github.com/onnx/onnx
  • github.com/onnx/onnx/commit/1b70f9b673259360b6a2339c4bd97db9ea6e552f
  • github.com/onnx/onnx/pull/6222
  • github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2025-10.yaml
  • huntr.com/bounties/a7a46cf6-1fa0-454b-988c-62d222e83f63
  • nvd.nist.gov/vuln/detail/CVE-2024-7776

Code Behaviors & Features

Detect and mitigate CVE-2024-7776 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.17.0

Fixed versions

  • 1.17.0

Solution

Upgrade to version 1.17.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/onnx/CVE-2024-7776.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.