Skip to main content
← All vulnerabilities
CVE-2026-115921EUVD-2026-110046GHSA-M4PR-6V3C-6FGR

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.22.0
None on Exploit-DB, Metasploit or GitHub

Summary

The ONNX machine learning interoperability library (versions prior to the fix) is affected through its Scan operator shape inference code. A maliciously crafted model can crash or disrupt the software during shape inference, causing denial of service.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • onnx onnx

    From 1.4.0 · fixed in 1.22.0

  • onnxPyPI

    From 1.4.0 · fixed in 1.22.0

References 4

GitHub · onnx/onnx