Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-115919 EUVD-2026-110040GHSA-48m4-24cq-37qf

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

Published Oct 26, 2026 · Updated Oct 26, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
onnx onnx < 1.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onnx No fix yet —
Debian 13 onnx No fix yet —
Debian 12 onnx No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 onnx No fix yet —
Ubuntu 26.04 LTS onnx No fix yet —
Ubuntu 22.04 LTS onnx No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS onnx No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onnx < 1.22.0 1.22.0 GHSA-48m4-24cq-37qf

References