Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-29200 BIT-tensorflow-2022-29200EUVD-2022-2054GHSA-2vv3-56qg-g2cfPYSEC-2026-3089PYSEC-2026-3267PYSEC-2026-944

Missing validation causes denial of service in TensorFlow via `LSTMBlockCell`

Published May 20, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of `tf.raw_ops.LSTMBlockCell` does not fully validate the input arguments. This results in a `CHECK`-failure which can be used to trigger a denial of service attack. The code does not validate the ranks of any of the arguments to this API call. This results in `CHECK`-failures when the elements of the tensor are accessed. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow < 2.6.4, >= 2.7.0rc0, < 2.7.2, >= 2.8.0rc0, < 2.8.1, >= 2.9.0rc0, < 2.9.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.6.4 2.6.4 GHSA-2vv3-56qg-g2cf
PyPI tensorflow >= 2.7.0, < 2.7.2 2.7.2 GHSA-2vv3-56qg-g2cf
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-2vv3-56qg-g2cf
PyPI tensorflow < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-3089
PyPI tensorflow-cpu < 2.6.4 2.6.4 GHSA-2vv3-56qg-g2cf
PyPI tensorflow-cpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-2vv3-56qg-g2cf
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-2vv3-56qg-g2cf
PyPI tensorflow-cpu < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-3267
PyPI tensorflow-gpu < 2.6.4 2.6.4 GHSA-2vv3-56qg-g2cf
PyPI tensorflow-gpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-2vv3-56qg-g2cf
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-2vv3-56qg-g2cf
PyPI tensorflow-gpu < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-944

References