CVE-2026-115921: ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
ONNX shape inference did not safely validate the required Scan num_scan_inputs attribute. Two malformed values could terminate or disrupt the process:
- If the attribute was missing,
ctx.getAttribute("num_scan_inputs")returned null and was dereferenced. - If the attribute was negative, conversion to
size_tproduced a very large value that reached a vector allocation and raisedstd::length_error.
The negative-value variant passed onnx.checker.check_model() before reaching shape inference.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-115921 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →