{"id":"CVE-2022-25882","published":"2023-01-25T05:00:02Z","modified":"2025-04-01T14:54:07Z","title":"Versions of the package onnx before 1.13.0 are vulnerable to Directory Traversal as the external_data field of the…","vendor":null,"product":null,"tier":"tail","description":{"text":"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\"","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01654,"percentile":0.77161,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","tags":[]},{"url":"https://github.com/onnx/onnx/issues/3991","tags":[]},{"url":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","tags":[]},{"url":"https://github.com/onnx/onnx/pull/4400","tags":[]},{"url":"https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","tags":[]},{"url":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","tags":[]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":15.43},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"onnx","versions":["< 1.13.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-01T14:53:52.957267Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"onnx","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-ffxj-547x-5j7c","PYSEC-2023-38"],"provenance":"source"}],"summary":{"text":"The onnx Python package, in versions before 1.13.0, has a directory traversal flaw in how it handles the external_data field of tensor protos, which can point to a file path outside the model's or user-provided directory. An attacker who can supply a crafted model file with no authentication, network access, or user interaction required can cause the library to read arbitrary files on the host, such as \"../../../etc/passwd\".","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:21Z"},"euvd":{"id":"EUVD-2023-0183","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-onnx-cve-2022-25882","children":[{"from":"CVE-2022-25882","to":"CVE-2024-27318","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"The vulnerability occurs as a bypass for the patch added for CVE-2022-25882.","from":"CVE.org","in":"CVE-2024-27318"},{"kind":"version-step","provenance":"source","package":"PyPI:onnx","fromFixed":"1.13.0","toFixed":"1.16.0","daysApart":394},{"kind":"same-code","provenance":"machine","files":["onnx/checker.cc","onnx/common/path.h"],"commits":["https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","https://github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20"],"basis":"shared function","functions":["check_tensor"]},{"kind":"similar","provenance":"machine","score":0.83,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2022-25882","published":"2023-01-25","fixed":"1.13.0","kev":false},{"cve":"CVE-2024-27318","published":"2024-02-23","fixed":"1.16.0","kev":false},{"cve":"CVE-2024-27319","published":"2024-02-23","fixed":"1.16.0","kev":false,"link":{"from":"CVE-2022-25882","to":"CVE-2024-27319","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:onnx","fromFixed":"1.13.0","toFixed":"1.16.0","daysApart":394}]}},{"cve":"CVE-2024-5187","published":"2024-06-06","fixed":"1.16.2","kev":false}],"package":"PyPI:onnx"}}