Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-115922 EUVD-2026-110049GHSA-q69g-f4f5-v8m7

ONNX: Denial of service via unchecked expansion of packed sub-byte tensors in ONNX Python APIs

Published Oct 26, 2026 · Updated Oct 30, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
onnx onnx < 1.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onnx No fix yet —
Debian 13 onnx No fix yet —
Debian 12 onnx No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 onnx No fix yet —
Ubuntu 26.04 LTS onnx No fix yet —
Ubuntu 22.04 LTS onnx No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS onnx No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onnx < 1.22.0 1.22.0 GHSA-q69g-f4f5-v8m7

References