Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-29195 BIT-tensorflow-2022-29195EUVD-2022-4060GHSA-h48f-q7rw-hvr7PYSEC-2026-1003PYSEC-2026-3196PYSEC-2026-3335

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

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.StagePeek` 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 assumes `index` is a scalar but there is no validation for this before accessing its value. 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-h48f-q7rw-hvr7
PyPI tensorflow >= 2.7.0, < 2.7.2 2.7.2 GHSA-h48f-q7rw-hvr7
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-h48f-q7rw-hvr7
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-3196
PyPI tensorflow-cpu < 2.6.4 2.6.4 GHSA-h48f-q7rw-hvr7
PyPI tensorflow-cpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-h48f-q7rw-hvr7
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-h48f-q7rw-hvr7
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-3335
PyPI tensorflow-gpu < 2.6.4 2.6.4 GHSA-h48f-q7rw-hvr7
PyPI tensorflow-gpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-h48f-q7rw-hvr7
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-h48f-q7rw-hvr7
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-1003

References