{"id":"CVE-2024-27318","aliases":["GHSA-whh8-fjgc-qp73","PYSEC-2024-222"],"title":"Onnx Directory Traversal vulnerability","summary":"Onnx Directory Traversal vulnerability","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","vendor":"onnx","product":"onnx","ecosystem":"pip","affected":["onnx < 1.16.0"],"patched":["onnx 1.16.0"],"published":"2024-02-23","updated":"2026-09-10","sourceUpdated":"2026-09-10T03:50:00.253474749Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-whh8-fjgc-qp73","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27318"},{"url":"https://github.com/onnx/onnx/commit/66b7fb630903fdcf3e83b6b6d56d82e904264a20"},{"url":"https://github.com/onnx/onnx"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2024-222.yaml"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FGTBH5ZYL2LGYHIJDHN2MAUURIR5E7PY"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFJJID2IZDOLFDMWVYTBDI75ZJQC6JOL"},{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-ONNX-2395479"}],"tags":["osv","pip"],"epss":0.01189,"epssPercentile":0.66086,"ingestedAt":"2026-09-12T03:13:01.735Z","slug":"CVE-2024-27318","body":"## Overview\n\nVersions 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.\n\n## Affected packages\n\n- `onnx < 1.16.0`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `onnx 1.16.0`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}