Vulnerability · Published Jan 25, 2023 · Assigned by snyk
CVE-2022-25882
High 7.5
In plain English
A high-severity path traversal in onnx. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.7%top 23.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | onnx | 1.13.0 | GHSA-ffxj-547x-5j7c |
| PyPI | onnx | 1.13.0 | PYSEC-2023-38 |
| Ubuntu:22.04:LTS | onnx | no fix listed | UBUNTU-CVE-2022-25882 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P
References
- https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479
- https://github.com/onnx/onnx/issues/3991
- https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129
- https://github.com/onnx/onnx/pull/4400
- https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d
- https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856