{"schemaVersion":3,"id":"CVE-2024-27318","aliases":["GHSA-whh8-fjgc-qp73","PYSEC-2024-222","CGA-8hqg-r8vh-xmcj"],"status":"published","duplicateOf":null,"title":null,"description":"Versions of the package onnx before and including 1.15.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. The vulnerability occurs as a bypass for the patch added for CVE-2022-25882.","dates":{"published":"2024-02-23T17:37:36.715Z","modified":"2025-02-13T17:46:25.734Z","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","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","exploitability":null,"impact":null,"computed":false},{"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 · Chainguard","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.01189,"percentile":0.67471,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01189},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01189,"percentile":0.67471}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01189,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01179,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01189,"percentile":0.67471}]},"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":[],"exploitCount":0,"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":"chainguard","product":"nemo","name":"nemo","label":"nemo","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo","purlType":"apk","versions":[{"text":"< 1.23.0-r12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.23.0-r12","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"39","noFixRecorded":false,"fixedIn":null},{"text":"40","noFixRecorded":false,"fixedIn":null}],"versionsText":"39 | 40","eol":{"isEol":true,"eolDate":"2024-11-26T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"39","label":"39","eolFrom":"2024-11-26T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"linuxfoundation","product":"onnx","name":"onnx","label":"onnx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.16.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.16.0","eol":null,"hubHref":"/vendor/linuxfoundation/onnx"},{"vendor":"onnx","product":"onnx","name":"onnx","label":"onnx","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.15.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.15.0","eol":null,"hubHref":"/vendor/onnx/onnx"},{"vendor":"PyPI","product":"onnx","name":"onnx","label":"onnx","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/onnx","purlType":"pypi","versions":[{"text":"< 66b7fb630903fdcf3e83b6b6d56d82e904264a20","noFixRecorded":false,"fixedIn":null},{"text":"< 1.16.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 66b7fb630903fdcf3e83b6b6d56d82e904264a20 | < 1.16.0","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20","label":"github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20","hostname":"github.com","tags":["WEB","FIX","Patch"]},{"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","Product"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27318","label":"nvd.nist.gov/vuln/detail/CVE-2024-27318","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-2024-222.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-whh8-fjgc-qp73","label":"github.com/advisories/GHSA-whh8-fjgc-qp73","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27318.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27318.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-F6J2-7X2W-8224","CGA-VM54-7RR3-H8P9"]},"timeline":[{"kind":"published","date":"2024-02-23T17:37:36.715Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-13T17:46:25.734Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:34:08.244Z","stale":false,"partial":false}}