4.4medium
CHECK-fail in LSTM with zero-length input in TensorFlow
- Severity
- 4.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.17% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m648-33qf-v3gpBIT-TENSORFLOW-2020-26270PYSEC-2020-256PYSEC-2020-301PYSEC-2020-336
Description
In affected versions of TensorFlow 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. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | < 1.15.5, >= 2.0.0, < 2.0.4, >= 2.1.0, < 2.1.3, >= 2.2.0, < 2.2.2, >= 2.3.0, < 2.3.2 | CVE List |
| tensorflow (PyPI) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2, before 14755416e364f17fb1870882fa778c7fec7f16e3 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2, before 14755416e364f17fb1870882fa778c7fec7f16e3 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2, before 14755416e364f17fb1870882fa778c7fec7f16e3 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2 | NVD |
| tensorflow (Bitnami) | before 1.15.5, from 2.0.0 before 2.0.4, from 2.1.0 before 2.1.3, from 2.2.0 before 2.2.2, from 2.3.0 before 2.3.2 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| GitHub | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N |
| NVD | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
In affected versions of TensorFlow 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. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
GitHub Advisory Database
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 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 for more information regarding the security model and how to contact us with issues and questions.
NVD (es)
En las versiones afectadas de TensorFlow que ejecutan un modelo LSTM/GRU donde la capa LSTM/GRU recibe una entrada con longitud cero, se produce un fallo de COMPROBACIÓN cuando se usa el backend CUDA. Esto puede resultar en una vulnerabilidad query-of-death, por medio de la denegación de servicio, si los usuarios pueden controlar la entrada a la capa. Esto es corregido en las versiones 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 y 2.4.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-26270 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m648-33qf-v3gp changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-26270 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-256 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-301 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-336 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2020-26270 changed 2026-09-10 | Apache-2.0 |