CVE-2026-115921
MEDIUM 6.2CVSS 3.1ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
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.
- Published
- 26 Oct 2026
- Last modified
- 31 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-195CWE-476
- Also known as
- GHSA-m4pr-6v3c-6fgr
- Sources
- NVDJSONOSV GHSA-m4pr-6v3c-6fgrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | onnx | >= 1.4.0, < 1.22.0 | 1.22.0 |
References
- https://github.com/onnx/onnx/commit/dd6bc92ea39fd2274fd671f0734b0b8b558356f5 · WEB
- https://github.com/onnx/onnx/pull/7916 · WEB
- https://github.com/onnx/onnx/releases/tag/v1.22.0 · WEB
- https://github.com/onnx/onnx/security/advisories/GHSA-m4pr-6v3c-6fgr · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-115921 · ADVISORY
- https://github.com/onnx/onnx · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 26 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Oct 2026)