CVE-2022-23560: TensorFlow GPU - Limited Reads and Writes Outside of Arrays in TFLite

tensorflow-gpu Updated 02 Oct 2025

Summary

04/02/2022
Yes i
Unrated
Not published

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

< 2.5.3 >= 2.6.0, < 2.6.3 < 6364463d6f5b6254cac3d6aedf999b6a96225038

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-23560 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 Your last release was probably never penetration tested 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 set of tools and libraries for building and training neural networks. TensorFlow GPU is a variant of TensorFlow that leverages GPU acceleration for faster computation. It is commonly used in scenarios where large-scale parallel processing is required for training deep learning models. However, TensorFlow GPU is vulnerable to a security issue that allows limited reads and writes outside of arrays in TFLite models.

Vulnerability Detail

The vulnerability arises due to missing validation in the conversion from sparse tensors to dense tensors in TFLite. An attacker can exploit this flaw by crafting a malicious TFLite model. When this model is executed, it can perform unauthorized reads and writes outside of the intended arrays, potentially leading to information disclosure or arbitrary code execution. This vulnerability affects versions of TensorFlow GPU up to 2.5.3, 2.6.3, and 2.7.1. However, the issue has been addressed in TensorFlow 2.8.0.

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 →

Conclusion

The vulnerability in TensorFlow GPU allows limited reads and writes outside of arrays in TFLite, potentially leading to security breaches. Users are strongly advised to upgrade to TensorFlow GPU 2.8.0 or apply the provided fix on affected versions. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for tensorflow-gpu →

Share this vulnerability

FAQ

TensorFlow GPU is a variant of TensorFlow that utilizes GPU acceleration for faster computation in machine learning tasks.

TFLite is a TensorFlow library for deploying machine learning models on mobile and embedded devices.

The vulnerability allows limited reads and writes outside of arrays in TFLite, potentially leading to information disclosure or arbitrary code execution.

Versions up to 2.5.3, 2.6.3, and 2.7.1 of TensorFlow GPU are affected.

Upgrading to TensorFlow GPU 2.8.0 or applying the fix commit on affected versions (2.5.3, 2.6.3, and 2.7.1) will mitigate the vulnerability.

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