CVE-2022-25882 json
Directory Traversal in onnx
published 2023-01-25 3 y ago modified 2026-06-17 4 mo ago also GHSA-ffxj-547x-5j7c , PYSEC-2023-38 , EUVD-2023-0183
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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"
Patch / fix
- pypi onnx 1.13.0
- n/a onnx 1.13.0
- github.com/onnx/onnx@f369b0e commit
- github.com/onnx/onnx#4400 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
1.65% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/onnx/onnx/issues/3991 referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | onnx | <1.13.0 |
1.13.0 |
Affected products
- n/a onnx
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/onnx/onnx/pull/4400
web, patch, third-party-advisory
-
github.com
/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d
web, patch, third-party-advisory
-
security.snyk.io
/vuln/SNYK-PYTHON-ONNX-2395479
web, exploit, third-party-advisory
-
github.com
/onnx/onnx/issues/3991
web, exploit, third-party-advisory, report
-
gist.github.com
/jnovikov/02a9aff9bf2188033e77bd91ff062856
web, exploit, third-party-advisory
-
github.com
/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2022-25882
advisory
-
github.com
/onnx/onnx
package
-
github.com
/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2023-38.yaml
web
-
github.com
/advisories/GHSA-ffxj-547x-5j7c
advisory
Sources
- CVE List CVE-2022-25882
- GitHub Advisory GHSA-ffxj-547x-5j7c
- NVD CVE-2022-25882
- OSV PYSEC-2023-38
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.