{"schemaVersion":3,"id":"CVE-2022-25882","aliases":["GHSA-ffxj-547x-5j7c","PYSEC-2023-38","UBUNTU-CVE-2022-25882"],"status":"published","duplicateOf":null,"title":null,"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\"","dates":{"published":"2023-01-25T05:00:02.847Z","modified":"2025-04-01T14:54:07.446Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:P","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01608,"percentile":0.75541,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01608},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01608,"percentile":0.75541}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01608,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01608,"percentile":0.75541}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ONNX_ONNX","name":"Onnx","source":"github","url":"https://github.com/onnx/onnx/issues/8036","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_JNOVIKOV_02A9AFF9BF2188033E77BD91FF062856","name":"02A9Aff9Bf2188033E77Bd91Ff062856","source":"github","url":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_5F5406ED84CCEA55","name":"Exploit Reference (security.snyk.io)","source":"reference","url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"ubuntu","product":"onnx","name":"onnx","label":"onnx","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/onnx","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"onnx","name":"onnx","label":"onnx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.13.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.0","eol":null,"hubHref":"/vendor/linuxfoundation/onnx"},{"vendor":"PyPI","product":"onnx","name":"onnx","label":"onnx","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/onnx","purlType":"pypi","versions":[{"text":"< f369b0e859024095d721f1d1612da5a8fa38988d","noFixRecorded":false,"fixedIn":null},{"text":"< 1.13.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< f369b0e859024095d721f1d1612da5a8fa38988d | < 1.13.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","label":"security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","hostname":"security.snyk.io","tags":["WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/onnx/onnx/issues/3991","label":"github.com/onnx/onnx/issues/3991","hostname":"github.com","tags":["WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","label":"github.com/onnx/onnx/blob/96516aecd4c110b0ac57eba08ac236ebf7205728/onnx/checker.cc%23L129","hostname":"github.com","tags":["WEB","REPORT","Broken Link"]},{"url":"https://github.com/onnx/onnx/pull/4400","label":"github.com/onnx/onnx/pull/4400","hostname":"github.com","tags":["WEB","REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","label":"github.com/onnx/onnx/commit/f369b0e859024095d721f1d1612da5a8fa38988d","hostname":"github.com","tags":["WEB","FIX","REPORT","Patch","Third Party Advisory"]},{"url":"https://gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","label":"gist.github.com/jnovikov/02a9aff9bf2188033e77bd91ff062856","hostname":"gist.github.com","tags":["WEB","REPORT","Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25882","label":"nvd.nist.gov/vuln/detail/CVE-2022-25882","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]},{"url":"https://github.com/onnx/onnx","label":"github.com/onnx/onnx","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2023-38.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2023-38.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-ffxj-547x-5j7c","label":"github.com/advisories/GHSA-ffxj-547x-5j7c","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-25882","label":"ubuntu.com/security/CVE-2022-25882","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25882","label":"www.cve.org/CVERecord?id=CVE-2022-25882","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-01-25T05:00:02.847Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-01T14:54:07.446Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:57:33.349Z","stale":false,"partial":false}}