# CVE-2022-25882: Directory Traversal in onnx

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.77%, higher than 79% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2023-01-25T05:00:02.847Z
- Modified: 2026-06-17T04:34:26.243Z
- Also known as: GHSA-ffxj-547x-5j7c, PYSEC-2023-38
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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"

(As written by CVE List.)

## Affected

- onnx: before 1.13.0
- onnx (PyPI): before 1.13.0; before f369b0e859024095d721f1d1612da5a8fa38988d
- linuxfoundation onnx: before 1.13.0

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## 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://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856> (exploit, 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://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

- CVE List: [CVE-2022-25882](https://www.cve.org/CVERecord?id=CVE-2022-25882), CVE Terms of Use, modified 2025-04-01
- GitHub Advisory Database: [GHSA-ffxj-547x-5j7c](https://github.com/advisories/GHSA-ffxj-547x-5j7c), CC-BY-4.0, modified 2025-04-01
- NVD: [CVE-2022-25882](https://nvd.nist.gov/vuln/detail/CVE-2022-25882), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-38](https://osv.dev/vulnerability/PYSEC-2023-38), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2022-25882 · Whole record: https://cve.day/CVE-2022-25882.json · Rebuilt by cve.day 2026-11-25T22:58:18.327Z
