# CVE-2020-26270: CHECK-fail in LSTM with zero-length input in TensorFlow

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** BIT-tensorflow-2020-26270, GHSA-m648-33qf-v3gp, PYSEC-2020-256, PYSEC-2020-301, PYSEC-2020-336
- **Published:** 2020-12-10T19:07:31.000Z
- **Modified:** 2026-07-08T06:00:14.083Z

## Who should check

- Projects that depend on PyPI package tensorflow (\< 1.15.5)
- Projects that depend on PyPI package tensorflow-cpu (\< 1.15.5)
- Projects that depend on PyPI package tensorflow-gpu (\< 1.15.5)
- Anyone running 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

## 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 and fixed versions

- PyPI `tensorflow`: affected \< 1.15.5; fixed 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (osv)
- PyPI `tensorflow-cpu`: affected \< 1.15.5; fixed 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (osv)
- PyPI `tensorflow-gpu`: affected \< 1.15.5; fixed 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (osv)
- 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 (cvelist)

## Mitigation

- Upgrade tensorflow to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).
- Upgrade tensorflow-cpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).
- Upgrade tensorflow-gpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-26270. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-26270.md
Affected: tensorflow < 1.15.5; tensorflow-cpu < 1.15.5; tensorflow-gpu < 1.15.5
Fixed in: 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2

Steps:
1. Search this machine and project for tensorflow (PyPI), tensorflow-cpu (PyPI), tensorflow-gpu (PyPI), tensorflow: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-26270 being exploited?

There is no confirmed exploitation: CVE-2020-26270 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-26270?

Medium: CVSS 4.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2020-26270?

tensorflow \< 1.15.5; tensorflow-cpu \< 1.15.5; tensorflow-gpu \< 1.15.5.

### Is there a fix for CVE-2020-26270?

Yes. Fixed in 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2. Upgrade tensorflow to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line). Upgrade tensorflow-cpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line). Upgrade tensorflow-gpu to one of 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2020-26270?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-m648-33qf-v3gp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-26270>
- patch: <https://github.com/tensorflow/tensorflow/commit/14755416e364f17fb1870882fa778c7fec7f16e3>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-301.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-336.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-256.yaml>
- other: <https://github.com/tensorflow/tensorflow>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-26270>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m648-33qf-v3gp> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-256> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-301> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2020-336> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-26270> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-26270>
