Skip to main content
← All vulnerabilities
CVE-2026-115919EUVD-2026-110040GHSA-48M4-24CQ-37QF

ONNX: Out-of-Bounds Read in RNN/GRU/LSTM Shape Inference (Old Opsets, Missing Rank Check)

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

ONNX, an open-source machine learning interoperability library, is affected, specifically its shape inference for older RNN, GRU, and LSTM model operators. A maliciously crafted model file can cause an out-of-bounds memory read during shape inference, which can crash any application that processes untrusted models with that function.

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, RNNShapeInference_opset1_to_6() processes malformed RNN and LSTM nodes from opsets 1 through 6 and GRU nodes from opsets 3 through 6 without verifying that the first input has rank three. The function accesses dim(0) and dim(1) on an undersized protobuf shape, which can read outside the intended repeated field and terminate an application when onnx.shape_inference.infer_shapes() processes an untrusted model that can pass onnx.checker.check_model(). 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 4

GitHub · onnx/onnx