ONNX: 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.
- Products
- onnx
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-115921
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:07 UTC · Revision 1
Source evidence
ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
core-cve · Original sourcePublished 26 Oct 2026, 17:28 UTC
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.
cve:CVE-2026-115921
onnx
Fixed versions: Not specified
Complete source record
{
"id": "04360ed5aac77b96b5d973c2d59ae01ce2a4d89db57f25b05f4d3dfce7ecf9ae",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-115921",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute",
"summary": "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.",
"evidence": "cve:CVE-2026-115921",
"products": [
{
"name": {
"value": "onnx",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2026-115921",
"aliases": [
"CVE-2026-115921"
],
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 6.2,
"attackVector": "LOCAL",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "NONE",
"confidentialityImpact": "NONE"
}
}
],
"affected": [
{
"vendor": "onnx",
"product": "onnx",
"versions": [
{
"status": "affected",
"version": ">= 1.4.0, < 1.22.0"
}
]
}
],
"modified": "2026-10-26T17:28:41.420Z",
"provider": "cve",
"references": [
"https://github.com/onnx/onnx/security/advisories/GHSA-m4pr-6v3c-6fgr",
"https://github.com/onnx/onnx/pull/7916",
"https://github.com/onnx/onnx/commit/dd6bc92ea39fd2274fd671f0734b0b8b558356f5",
"https://github.com/onnx/onnx/releases/tag/v1.22.0"
],
"provider_metadata": {
"cna": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-10-26T17:28:41.420Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-115921",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": "/containers/cna/metrics"
},
"source_id": "core-cve",
"document_id": 324478,
"published_at": "2026-10-26T17:28:41.42+00:00"
}