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

CVE-2024-27318: Onnx Directory Traversal vulnerability

February 23, 2024 (updated February 13, 2025)

Versions of the package onnx before and including 1.15.0 are vulnerable to Directory Traversal as the external_data field of the tensor proto can have a path to the file which is outside the model current directory or user-provided directory. The vulnerability occurs as a bypass for the patch added for CVE-2022-25882.

References

  • github.com/advisories/GHSA-whh8-fjgc-qp73
  • github.com/onnx/onnx
  • github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20
  • github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL
  • nvd.nist.gov/vuln/detail/CVE-2024-27318
  • security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479

Code Behaviors & Features

Detect and mitigate CVE-2024-27318 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.16.0

Fixed versions

  • 1.16.0

Solution

Upgrade to version 1.16.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

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

Source file

pypi/onnx/CVE-2024-27318.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:40 +0000.