CVE-2026-115919: ONNX out-of-bounds read in RNN shape inference

CVE-2026-115919 · Severity: medium · CVSS 6.2 · Published 2026-10-26

ONNX is a standard format for sharing machine learning models across different frameworks. A vulnerability in the shape inference function for recurrent neural networks (RNN, LSTM, GRU) can crash applications when they process malformed model files. An attacker could cause a denial of service by providing a specially crafted model file that passes validation but triggers the crash during processing.

Technologies: ONNX, onnx (PyPI). Vendors: ONNX, PyPI.

Quick answers

Is CVE-2026-115919 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-115919 being exploited in the wild.
How severe is CVE-2026-115919?
Medium severity, with a CVSS score of 6.2, published 26 October 2026.
Which products and versions are affected?
ONNX prior to 1.22.0; onnx (PyPI) <= 1.21.0, ECOSYSTEM:introduced=0,fixed=1.22.0.
Is there a fix for CVE-2026-115919?
Yes. onnx (PyPI): upgrade to 1.22.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-115919 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-115919?
Check whether you run ONNX or onnx (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • onnx (PyPI): upgrade to 1.22.0 or later
    pip install "onnx>=1.22.0"

Technical details

An out-of-bounds (OOB) read vulnerability exists in RNNShapeInference_opset1_to_6() in onnx/defs/rnn/old.cc. When infer_shapes() processes RNN, LSTM, or GRU nodes at opsets 1–6 with a first input tensor having fewer than 3 dimensions, the function accesses dim(0) and dim(1) without verifying rank, causing SIGSEGV or SIGABRT. The malformed model can bypass check_model() validation and only triggers during shape inference on untrusted models.

Affected products

  • ONNX ONNX prior to 1.22.0

Identifiers

  • CVE-2026-115919
  • GHSA-48m4-24cq-37qf

Timeline

  • 2026-10-26: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.