7.5high
Directory Traversal in onnx
- Severity
- 7.5high CVSS:3.1 by snyk
- Exploit likelihood
- 1.72% (higher than 78% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-ffxj-547x-5j7cPYSEC-2023-38
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
| Product or package | Versions | Reported by |
|---|---|---|
| onnx | before 1.13.0 | CVE List |
| onnx (PyPI) | before 1.13.0, before f369b0e859024095d721f1d1612da5a8fa38988d | GitHub Advisory Database, PyPA Advisory Database |
| linuxfoundation onnx | before 1.13.0 | NVD |
All scores
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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"
NVD (es)
Las versiones del paquete onnx anteriores a la 1.13.0 son vulnerables a Directory Traversal ya que el campo external_data del tensor proto puede tener una ruta al archivo que está fuera del directorio actual del modelo o del directorio proporcionado por el usuario, por ejemplo "../.. /../etc/contraseña"
References
| https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479 | exploit, third-party-advisory, web | |
| https://github.com/onnx/onnx/issues/3991 | exploit, report, third-party-advisory, web | |
| https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129 | broken-link, web | |
| https://github.com/onnx/onnx/pull/4400 | patch, third-party-advisory, web | |
| https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d | fix, patch, third-party-advisory, web | |
| https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856 | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-25882 | advisory | |
| https://github.com/onnx/onnx | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2023-38.yaml | web | |
| https://github.com/advisories/GHSA-ffxj-547x-5j7c | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25882 changed 2025-04-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ffxj-547x-5j7c changed 2025-04-01 | CC-BY-4.0 |
| NVD | CVE-2022-25882 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-38 changed 2026-06-10 | CC-BY-4.0 |