CVE Feed
6.2 Medium

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability.

CVE-2026-115921

Summary ONNX shape inference did not safely validate the required Scan numscaninputs attribute. Two malformed values could terminate or disrupt the process: 1. If the attribute was missing, ctx.getAttribute("numscaninputs") returned null and was dereferenced. 2. If the attribute was negative, conversion to sizet produced a very large value that reached a vector allocation and raised std::lengtherror. The negative-value variant passed onnx.checker.checkmodel() before reaching shape inference. Technical details The vulnerable Scan inference implementations used the following pattern: cpp auto numscaninputs = narrowcast (ctx.getAttribute("numscaninputs")->i()); This code neither checked the returned pointer nor rejected a negative signed value before converting it to an unsigned size. The pattern was present in the current Scan inference function and the older opset 8 and 9 paths. The fix uses the required-attribute helper and checked narrowing: cpp auto numscaninputs = narrow (getRequiredAttributeInt(ctx, "numscaninputs")); Impact An application that performs shape inference on an untrusted model can be terminated or forced into an exceptional allocation path, causing denial of…

Part of the AI stack

This affects ONNX, in Runtimes & formats.

Assessment

CVSS
6.2 (v3.1)
Severity
Medium
EPSS
0.13% chance of exploitation in the next 30 days
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
26 October 2026
Last updated
31 October 2026
Affected
pip · onnx
Weakness
CWE-195, CWE-476
Assigner
security-advisories@github.com

CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

At the source

References

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-115921