CVE-2026-115921

GHSA-m4pr-6v3c-6fgr · published 26 Oct 2026 · updated 31 Oct 2026

ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute

6.2MediumCVSS 6.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in onnx 1.22.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ONNX>=1.4.0 <1.22.0
pypi: onnx>=1.4.0 <=1.21.01.22.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in onnx (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-115921 severity on Zeptric[![CVE-2026-115921](https://zeptric.io/badge/cve/CVE-2026-115921.svg)](https://zeptric.io/cve/CVE-2026-115921)