Out-of-bounds Read 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.18% (8th 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-21755378
  • published27 Oct 2026
  • disclosed26 Oct 2026
  • creditMinicoAI

Introduced: 26 Oct 2026

NewCVE-2026-115919  (opens in a new tab)
CWE-125  (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 Out-of-bounds Read via RNNShapeInference_opset1_to_6 in onnx/defs/rnn/old.cc when processing a GRU, LSTM, or RNN node at opsets 1-6 whose first input has fewer than 3 dimensions. The function accesses dim(0) and dim(1) without first verifying the rank of the input shape, allowing a malformed model to trigger an out-of-bounds read. In Release builds this causes a SIGSEGV, and in debug/ASan builds it triggers a protobuf CHECK failure (SIGABRT), crashing the process. A malformed model that triggers this crash passes check_model() without errors.

CVSS Base Scores

version 4.0
version 3.1