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.
Severity (CVSS)
| Base score | 6.2 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-195 — CWE-195: Signed to Unsigned Conversion Error
- CWE-476 — CWE-476: NULL Pointer Dereference
Affected products
| Vendor | Product | Versions |
|---|---|---|
| onnx | onnx | >= 1.4.0, < 1.22.0 [affected] |
References
- https://github.com/onnx/onnx/security/advisories/GHSA-m4pr-6v3c-6fgr (x_refsource_CONFIRM)
- https://github.com/onnx/onnx/pull/7916 (x_refsource_MISC)
- https://github.com/onnx/onnx/commit/dd6bc92ea39fd2274fd671f0734b0b8b558356f5 (x_refsource_MISC)
- https://github.com/onnx/onnx/releases/tag/v1.22.0 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 27 Oct 2026 07:01 UTC.