{"id":"CVE-2026-115921","summary":"ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.4.0 until 1.22.0, ScanInferenceFunction, ScanInferenceFunction_opset8, and ScanInferenceFunction_opset9 do not safely validate the required num_scan_inputs attribute. A missing attribute is dereferenced as a null pointer, while a negative value is converted to size_t and can reach an exceptional oversized allocation path. An untrusted model can therefore terminate or disrupt shape inference, including a negative-value model that can pass onnx.checker.check_model(). This issue is fixed in version 1.22.0.","aliases":["GHSA-m4pr-6v3c-6fgr"],"modified":"2026-11-11T10:47:24.210088604Z","published":"2026-10-26T17:28:41.420Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-195","CWE-476"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115921.json"},"references":[{"type":"WEB","url":"https://github.com/onnx/onnx/releases/tag/v1.22.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115921.json"},{"type":"ADVISORY","url":"https://github.com/onnx/onnx/security/advisories/GHSA-m4pr-6v3c-6fgr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115921"},{"type":"FIX","url":"https://github.com/onnx/onnx/commit/dd6bc92ea39fd2274fd671f0734b0b8b558356f5"},{"type":"FIX","url":"https://github.com/onnx/onnx/pull/7916"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/onnx/onnx","events":[{"introduced":"8a1319733a5518bd0001842db27e2df53a306eff"},{"fixed":"2bb50465112feca9003e1ed654d77f01ff1415ca"},{"fixed":"dd6bc92ea39fd2274fd671f0734b0b8b558356f5"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"1.4.0"},{"fixed":"1.22.0"}]},{"range":[{"fixed":"dd6bc92ea39fd2274fd671f0734b0b8b558356f5"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"v1.22.0","range":[{"fixed":"2bb50465112feca9003e1ed654d77f01ff1415ca"}]}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115921.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}