{"id":"CVE-2026-115922","summary":"ONNX: Denial of service via unchecked expansion of packed sub-byte tensors in ONNX Python APIs","details":"Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. Prior to 1.22.0, _unpack_2bit() and _unpack_4bit() resize unpacked arrays according to attacker-controlled TensorProto.dims without verifying that raw_data or int32_data encodes the declared number of elements. Materializing an untrusted UINT2, INT2, UINT4, INT4, or FLOAT4E2M1 tensor through onnx.numpy_helper.to_array() or onnx.reference.ReferenceEvaluator can therefore expand a small packed payload into a disproportionately large allocation and exhaust memory. This issue is fixed in version 1.22.0.","aliases":["GHSA-q69g-f4f5-v8m7"],"modified":"2026-11-01T07:03:34.766750993Z","published":"2026-10-26T17:31:03.716Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-789"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115922.json"},"references":[{"type":"WEB","url":"https://github.com/onnx/onnx/releases/tag/v1.22.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115922.json"},{"type":"ADVISORY","url":"https://github.com/onnx/onnx/security/advisories/GHSA-q69g-f4f5-v8m7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115922"},{"type":"FIX","url":"https://github.com/onnx/onnx/commit/05c1bc3bceceb8d3cf11e9e7fc7f19f971c44988"},{"type":"FIX","url":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df"},{"type":"FIX","url":"https://github.com/onnx/onnx/commit/dce5876d6cc6cc30157af7d26a752ef44976da8e"},{"type":"FIX","url":"https://github.com/onnx/onnx/pull/8033"},{"type":"FIX","url":"https://github.com/onnx/onnx/pull/8038"},{"type":"FIX","url":"https://github.com/onnx/onnx/pull/8066"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/onnx/onnx","events":[{"introduced":"0"},{"fixed":"2bb50465112feca9003e1ed654d77f01ff1415ca"},{"fixed":"05c1bc3bceceb8d3cf11e9e7fc7f19f971c44988"},{"fixed":"8de2cf6aa47928e6515ac6d9e1a8b4758886a7df"},{"fixed":"dce5876d6cc6cc30157af7d26a752ef44976da8e"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"1.22.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"05c1bc3bceceb8d3cf11e9e7fc7f19f971c44988"}]},{"range":[{"fixed":"8de2cf6aa47928e6515ac6d9e1a8b4758886a7df"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"dce5876d6cc6cc30157af7d26a752ef44976da8e"}]},{"range":[{"fixed":"2bb50465112feca9003e1ed654d77f01ff1415ca"}],"source":"REFERENCES_TAG","original_tag":"v1.22.0"}]}}],"versions":["v1.3.0","v1.1.0","v0.2","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-115922.json","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/onnx/onnx/commit/05c1bc3bceceb8d3cf11e9e7fc7f19f971c44988","target":{"function":"check_tensor","file":"onnx/checker.cc"},"deprecated":false,"digest":{"function_hash":"184337509803398633610380455478682277910","length":3251},"id":"CVE-2026-115922-14e8cf83"},{"target":{"file":"onnx/defs/nn/old.cc"},"deprecated":false,"digest":{"line_hashes":["25440321514036043065278204033159090187","239192492975256045386654701084331199934","50896641983058245200330746032464766586","326994317127274540128886881335231680220","25440321514036043065278204033159090187","239192492975256045386654701084331199934","50896641983058245200330746032464766586","326994317127274540128886881335231680220"],"threshold":0.9},"id":"CVE-2026-115922-1ec9b28e","signature_type":"Line","signature_version":"v1","source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df"},{"deprecated":false,"digest":{"line_hashes":["171641436542286700733147705809519379958","101170925163148126753492092233437221293","235781877266724711102317429284310758987","133166857247336735345625195269151223936","323780389527129471481851863189052095286","229965024959858802828265845816360469967","164318697743328883263585683552947512205","76056082528319384445805717850658992685","53725209526338910326530770119475588712","133131361728817836662841977945018546425","207759490206948136993896029912675428482","206947597080773764075342388888165283915"],"threshold":0.9},"id":"CVE-2026-115922-3cbc71d2","signature_type":"Line","signature_version":"v1","source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df","target":{"file":"onnx/checker.cc"}},{"digest":{"length":3251,"function_hash":"184337509803398633610380455478682277910"},"id":"CVE-2026-115922-42ba609d","signature_type":"Function","signature_version":"v1","source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df","target":{"file":"onnx/checker.cc","function":"check_tensor"},"deprecated":false},{"deprecated":false,"digest":{"function_hash":"114246219743612271859074864330744590136","length":4075},"id":"CVE-2026-115922-4e65cf3e","signature_type":"Function","signature_version":"v1","source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df","target":{"file":"onnx/defs/nn/old.cc","function":"convPoolShapeInference_opset1_to_11"}},{"target":{"file":"onnx/defs/nn/defs.cc"},"deprecated":false,"digest":{"line_hashes":["25440321514036043065278204033159090187","239192492975256045386654701084331199934","50896641983058245200330746032464766586","326994317127274540128886881335231680220"],"threshold":0.9},"id":"CVE-2026-115922-999b2556","signature_type":"Line","signature_version":"v1","source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df"},{"signature_version":"v1","source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df","target":{"file":"onnx/defs/nn/old.cc","function":"convPoolShapeInference_opset19"},"deprecated":false,"digest":{"function_hash":"313236776269097801195290806981349185413","length":4182},"id":"CVE-2026-115922-a16fdbca","signature_type":"Function"},{"source":"https://github.com/onnx/onnx/commit/8de2cf6aa47928e6515ac6d9e1a8b4758886a7df","target":{"file":"onnx/defs/nn/defs.cc","function":"convPoolShapeInference"},"deprecated":false,"digest":{"length":4203,"function_hash":"117027709560668418335400936449174118866"},"id":"CVE-2026-115922-e7d1f7a6","signature_type":"Function","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/onnx/onnx/commit/05c1bc3bceceb8d3cf11e9e7fc7f19f971c44988","target":{"file":"onnx/checker.cc"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["171641436542286700733147705809519379958","101170925163148126753492092233437221293","235781877266724711102317429284310758987","133166857247336735345625195269151223936","323780389527129471481851863189052095286","229965024959858802828265845816360469967","164318697743328883263585683552947512205","76056082528319384445805717850658992685","53725209526338910326530770119475588712","133131361728817836662841977945018546425","207759490206948136993896029912675428482","206947597080773764075342388888165283915"]},"id":"CVE-2026-115922-f00cdb77","signature_type":"Line"}],"vanir_signatures_modified":"2026-11-01T07:03:34Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}