CVE-2026-115921: ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute

Published Oct 26, 2026
·
Updated

Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.4.0 until 1.22.0, ScanInferenceFunction, ScanInferenceFunctionopset8, and ScanInferenceFunctionopset9 do not safely validate the required numscaninputs attribute. A missing attribute is dereferenced as a null pointer, while a negative value is converted to sizet 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.checkmodel(). This issue is fixed in version 1.22.0.

Affected Software

1 affected component
Open Neural Network Exchange ONNX>=1.4.0<1.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ONNX to a version that resolves this vulnerability.

    Fixed in 1.22.0

Event History

Oct 26, 2026
CVE Published
via MITRE·05:28 PM
Data Sourced
via MITRE·05:28 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which ONNX deployments are exposed?

ONNX versions from 1.4.0 through 1.22.0 are affected when they perform shape inference using ScanInferenceFunction, ScanInferenceFunction_opset8, or ScanInferenceFunction_opset9 on an untrusted model.

2

What does an attacker need to provide to trigger the issue?

An attacker needs to supply an ONNX model with a Scan node whose required num_scan_inputs attribute is missing or negative. A model using a negative value can pass onnx.checker.check_model().

3

What is the impact of successful exploitation?

Processing the crafted model can terminate or disrupt shape inference. The missing attribute causes a null-pointer dereference, while a negative value is converted to size_t and can enter an exceptional oversized-allocation path.

4

How can the issue be remediated?

Upgrade ONNX to version 1.22.0, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203