CVE-2022-25882: onnx directory traversal through the external_data field of tensor proto
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2022-25882
- Published
- Record updated
- Affected
- onnx < 1.13.0
- Fixed in
- 1.13.0
- released December 12, 2022, 46 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.6%
Summary
CVE-2022-25882 affects versions of the onnx package before 1.13.0. The external_data field of a tensor proto can contain a path to a file outside the model's current directory or a user-provided directory, such as "../../../etc/passwd". The weakness is classified as CWE-22, Improper Limitation of a Pathname to a Restricted Directory.
Mitigation
The source text references a patch commit (github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d) and a pull request (github.com/onnx/onnx/pull/4400), but does not explicitly state the fixed version or describe the fix in its own words. The affected range is versions before 1.13.0.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- onnxPyPINo LLM dependency detected · 18 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online