CVE-2022-25882
Publication date 26 January 2023
Last updated 24 July 2024
Ubuntu priority
Cvss 3 Severity Score
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”
Status
Package | Ubuntu Release | Status |
---|---|---|
onnx | 24.10 oracular |
Needs evaluation
|
24.04 LTS noble |
Needs evaluation
|
|
22.04 LTS jammy |
Needs evaluation
|
|
20.04 LTS focal | Not in release | |
18.04 LTS bionic | Not in release | |
16.04 LTS xenial | Ignored end of standard support | |
14.04 LTS trusty | Ignored end of standard support |
Notes
ccdm94
it seems like the external_data field, which leads to the vulnerability, was only introduced in version 1.4.0 of onnx, as per information recovered from PR 678 and commit 51b6ecce (see https://github.com/onnx/onnx/releases/tag/v1.4.0 as well for more information). This means versions prior to version 1.4.0 are not vulnerable.
Severity score breakdown
Parameter | Value |
---|---|
Base score |
|
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | None |
Availability impact | None |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
References
Other 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://www.cve.org/CVERecord?id=CVE-2022-25882