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

CVE-2022-25882: Directory Traversal in onnx

January 26, 2023 (updated April 1, 2025)

Versions of the package onnx before 1.13.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, for example “../../../etc/passwd”

References

  • gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856
  • github.com/advisories/GHSA-ffxj-547x-5j7c
  • github.com/onnx/onnx
  • github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129
  • github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d
  • github.com/onnx/onnx/issues/3991
  • github.com/onnx/onnx/pull/4400
  • github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2023-38.yaml
  • nvd.nist.gov/vuln/detail/CVE-2022-25882
  • security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479

Code Behaviors & Features

Detect and mitigate CVE-2022-25882 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.13.0

Fixed versions

  • 1.13.0

Solution

Upgrade to version 1.13.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-2022-25882.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:12 +0000.