CVE-2022-23573: TensorFlow GPU - Uninitialized Data Copying in AssignOp

tensorflow-gpu Updated 02 Oct 2025

Summary

04/02/2022
Yes i
Unrated
Not published

CVE-2022-23573: Tensorflow is an Open Source Machine Learning Framework. Affects tensorflow-gpu across 3 version ranges.

< 2.5.3 >= 2.6.0, < 2.6.3 < ef1d027be116f25e25bb94a60da491c2cf55bd0b

Fixed in 2.5.3 or 2.6.3, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-23573 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TensorFlow is an open-source machine learning framework widely used for developing and deploying machine learning models. It provides a comprehensive ecosystem for building and training neural networks. TensorFlow GPU is a variant of TensorFlow that leverages the power of GPUs for accelerated computation.

Vulnerability Detail

The vulnerability (CVE-2022-23573) in TensorFlow GPU arises from the implementation of the AssignOp operation. This implementation can lead to the copying of uninitialized data to a new tensor, resulting in undefined behavior. While the left-hand side of the assignment is checked for initialization to minimize allocations, the right-hand side is not checked. This oversight can have various adverse effects on the execution of machine learning models.

How To Fix

Latest published version: 2.12.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-gpu==2.12.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.5.3 2.5.3
    pip install --upgrade "tensorflow-gpu==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow-gpu==2.6.3"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, users can manually initialize the right-hand side of the assignment operation to avoid the uninitialized data copying. Here's an example of how to do this in Python:

import tensorflow as tf

# Manually initialize the right-hand side tensor
rhs_tensor = tf.zeros(shape)

# Perform the assignment operation
assign_op = tf.assign(lhs_tensor, rhs_tensor)

Conclusion

In conclusion, the vulnerability (CVE-2022-23573) in TensorFlow GPU arises from the uninitialized data copying in the AssignOp operation. This can lead to undefined behavior and adversely affect the execution of machine learning models. Users are advised to update their TensorFlow GPU installations to the fixed versions once they are released. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow-gpu →

Share this vulnerability

FAQ

TensorFlow GPU is a variant of TensorFlow that utilizes GPUs for accelerated computation. It is specifically designed to leverage the parallel processing capabilities of GPUs to speed up the training and inference of machine learning models.

This vulnerability can result in the copying of uninitialized data to a new tensor, leading to undefined behavior. This can have various adverse effects on the execution of machine learning models, potentially compromising their accuracy and reliability.

The vulnerability affects TensorFlow GPU versions 2.5.3, 2.6.0, 2.6.3, and any earlier versions within the supported range. Users of these versions should update to the fixed versions once they are released.

Yes, a temporary workaround involves manually initializing the right-hand side tensor before performing the assignment operation. This can help avoid the uninitialized data copying. Refer to the 'workaround' section for a code example.

You can find more information about this vulnerability, including its technical details and the fix, in the official TensorFlow GitHub repository and the associated advisory database. Links to these resources can be found in the 'meta' section of this report.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-gpu.

How To Fix

Latest published version: 2.12.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-gpu==2.12.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.5.3 2.5.3
    pip install --upgrade "tensorflow-gpu==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow-gpu==2.6.3"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback