{"api_version":"1","generated_at":"2026-04-23T06:20:07+00:00","cve":"CVE-2022-25882","urls":{"html":"https://cve.report/CVE-2022-25882","api":"https://cve.report/api/cve/CVE-2022-25882.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-25882","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-25882"},"summary":{"title":"CVE-2022-25882","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\"","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2023-01-26 21:15:00","updated_at":"2023-11-07 03:44:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","name":"https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","refsource":"MISC","tags":[],"title":"Do not allow to read tensor's external_data outside the model directo… · onnx/onnx@f369b0e · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","name":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","refsource":"MISC","tags":[],"title":"Directory Traversal in onnx | CVE-2022-25882 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/onnx/onnx/issues/3991","name":"https://github.com/onnx/onnx/issues/3991","refsource":"MISC","tags":[],"title":"The onnx runtime allow to load the external_data from the file outside the folder · Issue #3991 · onnx/onnx · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/onnx/onnx/pull/4400","name":"https://github.com/onnx/onnx/pull/4400","refsource":"MISC","tags":[],"title":"Do not allow to read tensor's external_data outside the model directory by jnovikov · Pull Request #4400 · onnx/onnx · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","name":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","refsource":"MISC","tags":[],"title":"Onnx runtime poc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","name":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","refsource":"MISC","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc#L129","name":"MISC:https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","refsource":"MITRE","tags":[],"title":"onnx/checker.cc at 96516aecd4c110b0ac57eba08ac236ebf7205728 · onnx/onnx · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25882","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25882","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"25882","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"linuxfoundation","cpe5":"onnx","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-25882","qid":"906748","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for pytorch (25854-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-25882","ASSIGNER":"report@snyk.io","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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\""}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Directory Traversal","cweId":"CWE-22"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"onnx","version":{"version_data":[{"version_value":"0","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","refsource":"MISC","name":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479"},{"url":"https://github.com/onnx/onnx/issues/3991","refsource":"MISC","name":"https://github.com/onnx/onnx/issues/3991"},{"url":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","refsource":"MISC","name":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129"},{"url":"https://github.com/onnx/onnx/pull/4400","refsource":"MISC","name":"https://github.com/onnx/onnx/pull/4400"},{"url":"https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","refsource":"MISC","name":"https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d"},{"url":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","refsource":"MISC","name":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856"}]},"credits":[{"lang":"en","value":"jnovikov"}],"impact":{"cvss":[{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P"}]}},"nvd":{"publishedDate":"2023-01-26 21:15:00","lastModifiedDate":"2023-11-07 03:44:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:linuxfoundation:onnx:*:*:*:*:*:*:*:*","versionEndExcluding":"1.13.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}