What’s Vulnerable › Vulnerabilities
CVE-2022-25882
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.6% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-01-26 · updated 2026-06-17
- Weakness: CWE-22
Description
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"
Affected products
- onnx: before 1.13.0 — fixed in 1.13.0
How to fix
Upgrade to a fixed version: onnx 1.13.0. Check the vendor advisory for mitigations.
References
- https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856
- https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129
- https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d
- https://github.com/onnx/onnx/issues/3991
- https://github.com/onnx/onnx/pull/4400
- https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479
- https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856
- https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129
- https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d
- https://github.com/onnx/onnx/issues/3991
- https://github.com/onnx/onnx/pull/4400
- https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479
Get alerted when CVE-2022-25882 or the next vulnerability affects your stack