Skip to content
OpenAdvisories
High · 7.6 CVE-2022-23573 BIT-tensorflow-2022-23573EUVD-2022-0321GHSA-q85f-69q7-55h2PYSEC-2022-137PYSEC-2022-82PYSEC-2026-3229

Uninitialized variable access in Tensorflow

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

Description

Tensorflow is an Open Source Machine Learning Framework. The implementation of `AssignOp` can result in copying uninitialized data to a new tensor. This later results in undefined behavior. The implementation has a check that the left hand side of the assignment is initialized (to minimize number of allocations), but does not check that the right hand side is also initialized. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.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-q85f-69q7-55h2
PyPI tensorflow >= 2.6.0, < 2.6.3 2.6.3 GHSA-q85f-69q7-55h2
PyPI tensorflow >= 2.7.0, < 2.7.1 2.7.1 GHSA-q85f-69q7-55h2
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-3229
PyPI tensorflow-cpu < 2.5.3 2.5.3 GHSA-q85f-69q7-55h2
PyPI tensorflow-cpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-q85f-69q7-55h2
PyPI tensorflow-cpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-q85f-69q7-55h2
PyPI tensorflow-cpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-82
PyPI tensorflow-gpu < 2.5.3 2.5.3 GHSA-q85f-69q7-55h2
PyPI tensorflow-gpu >= 2.6.0, < 2.6.3 2.6.3 GHSA-q85f-69q7-55h2
PyPI tensorflow-gpu >= 2.7.0, < 2.7.1 2.7.1 GHSA-q85f-69q7-55h2
PyPI tensorflow-gpu < 2.5.3 · >= 2.6.0, < 2.6.3 2.5.3, 2.6.3 PYSEC-2022-137

References