Skip to content
OpenAdvisories
High · 8.8 CVE-2022-23574 BIT-tensorflow-2022-23574EUVD-2022-0322GHSA-77gp-3h4r-6428PYSEC-2022-138PYSEC-2022-83PYSEC-2026-3127

Out of bounds read and write in Tensorflow

Published Feb 4, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

Tensorflow is an Open Source Machine Learning Framework. There is a typo in TensorFlow's `SpecializeType` which results in heap OOB read/write. Due to a typo, `arg` is initialized to the `i`th mutable argument in a loop where the loop index is `j`. Hence it is possible to assign to `arg` from outside the vector of arguments. Since this is a mutable proto value, it allows both read and write to outside of bounds data. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, and TensorFlow 2.6.3, as these are also affected and still in supported range.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow >= 2.7.0, < 2.7.1, >= 2.6.0, < 2.6.3, < 2.5.3 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.5.3 2.5.3 GHSA-77gp-3h4r-6428
PyPI tensorflow >= 2.6.0, < 2.6.3 2.6.3 GHSA-77gp-3h4r-6428
PyPI tensorflow >= 2.7.0, < 2.7.1 2.7.1 GHSA-77gp-3h4r-6428
PyPI tensorflow < 2.5.3 · >= 2.6.0, < 2.6.3 · >= 2.7.0, < 2.7.1 2.5.3, 2.6.3, 2.7.1 PYSEC-2026-3127
PyPI tensorflow-cpu < 2.5.3 2.5.3 GHSA-77gp-3h4r-6428
PyPI tensorflow-cpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-77gp-3h4r-6428
PyPI tensorflow-cpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-77gp-3h4r-6428
PyPI tensorflow-cpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-83
PyPI tensorflow-gpu < 2.5.3 2.5.3 GHSA-77gp-3h4r-6428
PyPI tensorflow-gpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-77gp-3h4r-6428
PyPI tensorflow-gpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-77gp-3h4r-6428
PyPI tensorflow-gpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-138

References