{"id":"CVE-2024-27318","aliases":["CVE-2024-27318","GHSA-whh8-fjgc-qp73","PYSEC-2024-222"],"related":[],"kind":"vulnerability","state":"published","title":"Onnx Directory Traversal vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones del paquete onnx anteriores a la 1.15.0 inclusive son vulnerables a Directory Traversal ya que el campo external_data del tensor proto puede tener una ruta al archivo que está fuera del directorio actual del modelo o del directorio proporcionado por el usuario. La vulnerabilidad se produce como una omisión del parche agregado para CVE-2022-25882.","source":"nvd"}],"published":"2024-02-23T17:37:36.715Z","modified":"2026-09-10T03:50:00.253Z","severity":{"scorer":"HiddenLayer","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"HiddenLayer","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.15.0","status":"affected"}],"vendor":"onnx","product":"onnx","package":"onnx","repo":"https://github.com/onnx/onnx","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.15.0","status":"affected"}],"vendor":"linuxfoundation","product":"onnx","cpe":"cpe:2.3:a:linuxfoundation:onnx:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.16.0"}],"ecosystem":"PyPI","package":"onnx","purl":"pkg:pypi/onnx","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.16.0"}],"vendor":"linuxfoundation","product":"onnx","cpe":"cpe:2.3:a:linuxfoundation:onnx:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"39"},{"status":"affected","version":"40"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"66b7fb630903fdcf3e83b6b6d56d82e904264a20"},{"type":"git","status":"affected","fixed":"66b7fb630903fdcf3e83b6b6d56d82e904264a20"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.16.0"}],"ecosystem":"PyPI","package":"onnx","purl":"pkg:pypi/onnx","repo":"https://github.com/onnx/onnx","source":"pysec"}],"references":[{"url":"https://github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479","tags":["product","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL/","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY/","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27318","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/onnx/onnx","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-whh8-fjgc-qp73","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"HiddenLayer","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-08-14T15:31:21.543Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-27318","url":"https://www.cve.org/CVERecord?id=CVE-2024-27318","licence":"CVE Terms of Use","modified":"2025-02-13T17:46:25.734Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-whh8-fjgc-qp73","url":"https://github.com/advisories/GHSA-whh8-fjgc-qp73","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.253Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-27318","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27318","licence":"Public domain","modified":"2026-06-17T07:19:38.507Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-222","url":"https://osv.dev/vulnerability/PYSEC-2024-222","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:27.494Z"}],"updatedAt":"2026-11-25T22:58:37.031Z","epss":{"score":0.01189,"percentile":0.68801,"date":"2026-12-01T12:00:22.000Z"}}