CVE-2026-115921
published medium CVSS 3.1 · 6.2ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| onnx | — | onnx>= 1.4.0, < 1.22.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| onnx | onnx | >= 1.4.0, < 1.22.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-195 CWE-195: Signed to Unsigned Conversion Error
- CWE-476 CWE-476: NULL Pointer Dereference
References
4Provider assertions
2GitHub_M · cna
ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6c896ce4715e9917a75818303250c687ea9d8f526c48f6e83124c1f0152b0d8d
- Ingested
- 31 Oct 2026, 01:46:30 UTC
- Source record
- Official CVE record