Skip to content
TensorFlowGHSA-m648-33qf-v3gp

CHECK-fail in LSTM with zero-length input in TensorFlow

Medium4.4CVE-2020-26270 · Published Dec 10, 2020 · updated Jul 8, 2026

GitHub advisory

Affected versions

PackageAffectedFixed in
tensorflow
PyPI
< 1.15.51.15.5
>= 2.0.0, < 2.0.42.0.4
>= 2.1.0, < 2.1.32.1.3
>= 2.2.0, < 2.2.22.2.2
>= 2.3.0, < 2.3.22.3.2
Details and references

### Impact Running an LSTM/GRU model where the LSTM/GRU layer receives an input with zero-length results in a `CHECK` failure when using the CUDA backend. This can result in a query-of-death vulnerability, via denial of service, if users can control the input to the layer. ### Patches We have patched the issue in GitHub commit [14755416e364f17fb1870882fa778c7fec7f16e3](https://github.com/tensorflow/tensorflow/commit/14755416e364f17fb1870882fa778c7fec7f16e3) and will release TensorFlow 2.4.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved. Since this issue also impacts TF versions before 2.4, we will patch all releases between 1.15 and 2.3 inclusive. ### For more information Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.

CVSS 3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Severity from
GitHub (reviewed advisory)
Weakness
CWE-20
Also known as
BIT-tensorflow-2020-26270, CVE-2020-26270, PYSEC-2020-256, PYSEC-2020-301, PYSEC-2020-336

More TensorFlow advisories

All TensorFlow
DateAdvisory
Dec 102020Uninitialized memory access in TensorFlow
CVE-2020-26266Medium4.4fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2
Dec 102020Lack of validation in data format attributes in TensorFlow
CVE-2020-26267Low4.4fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2
Dec 102020Write to immutable memory region in TensorFlow
CVE-2020-26268Medium4.4fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2
Dec 102020Heap out of bounds access in MakeEdge in TensorFlow
CVE-2020-26271Medium4.4fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2
Nov 132020Float cast overflow undefined behavior
CVE-2020-15266Medium3.7fixed in 2.4.0
Nov 132020Segfault in `tf.quantization.quantize_and_dequantize`
CVE-2020-15265High5.9fixed in 2.4.0

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.