GPU VulnDB

Database/AI/ML frameworks & serving

ONNX: untrusted model crashes shape inference via missing or negative num_scan_inputs

CVSS 6.2CVE-2026-115921AI/ML frameworks & servingcurated

Impact

The Scan operator's shape-inference functions do not validate the required num_scan_inputs attribute: a missing attribute is dereferenced as a null pointer, and a negative value becomes a huge size_t and reaches an oversized-allocation path. A model file is enough to terminate or wedge whatever process runs shape inference - a model-conversion step, a validation gate in a serving pipeline, or an inference server loading the graph. The nastier detail is that a model with a negative value still passes onnx.checker.check_model(), so a pre-flight check that operators rely on does not catch it. On a shared GPU fleet this is a tenant-supplied-model crash of the serving or conversion worker, not host compromise, but a crash loop on model load keeps accelerators idle.

Who can reach it

Local to the process that loads the model: anyone who can submit an ONNX model file into a conversion, validation or serving path. Authentication depends on your model-upload surface; no privileges on the host are needed.

What to do

Upgrade onnx to 1.22.0 and restart the services that load models (conversion workers, inference servers embedding onnx shape inference). Process restart only - no node drain or reboot. Until then, do not run shape inference on models from untrusted tenants, and do not treat onnx.checker.check_model() as a sufficient gate for this class of input.

References

Related entries

All AI/ML frameworks & serving entries

This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.