Skip to main content
← All vulnerabilities
CVE-2026-115922EUVD-2026-110049GHSA-Q69G-F4F5-V8M7

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.22.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

The ONNX open-source machine learning library's Python APIs, specifically its tensor conversion and reference evaluation helpers, are affected. A maliciously crafted model containing packed low-bit tensors can cause these functions to allocate far more memory than the input contains, potentially exhausting available memory and causing a denial of service.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  4. Record last updated

Affected versions

  • onnx onnx

    fixed in 1.22.0

  • onnxPyPI

    fixed in 1.22.0

References 8

GitHub · onnx/onnx