Memory Allocation with Excessive Size Value Affecting onnx package, versions [,1.22.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-ONNX-21755379
  • published27 Oct 2026
  • disclosed26 Oct 2026
  • creditUnknown

Introduced: 26 Oct 2026

NewCVE-2026-115922  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade onnx to version 1.22.0 or higher.

Overview

onnx is an Open Neural Network Exchange

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the ONNX model parser in onnx/defs/nn/defs.cc and related definition files, where a model can declare an extremely large tensor dimension (e.g. 700,000,000) while containing only a minimal packed payload, causing the checker or shape-inference logic to attempt allocation or iteration proportional to the declared size and crash the process. An attacker can trigger this by supplying a small model file with an inflated dimension value to any application that parses untrusted ONNX models.

CVSS Base Scores

version 4.0
version 3.1