CVE-2022-23595: Null Pointer Dereference in TensorFlow

tensorflow Updated 02 Oct 2025

Summary

09/02/2022
Yes i
Moderate
5.3

CVE-2022-23595: Null pointer dereference in TensorFlow. Affects tensorflow across 3 version ranges.

< 2.5.3 >= 2.6.0, < 2.6.3 >= 2.7.0, < 2.7.1

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

Also tracked for

The same CVE-2022-23595 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow supports both CPU and GPU computations, allowing users to leverage hardware acceleration for faster model training and inference. However, a vulnerability has been discovered in TensorFlow that can lead to a null pointer dereference.

Vulnerability Detail

The vulnerability in TensorFlow occurs when building an XLA compilation cache. In the default scenario, all devices are allowed, which triggers a null pointer dereference. This happens because the flr->config_proto() function returns a null pointer (nullptr), leading to a crash. The impact of this vulnerability is that it can cause the TensorFlow application to crash, resulting in a denial of service (DoS) condition. An attacker may be able to exploit this vulnerability to disrupt the availability of TensorFlow-based systems.

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow==2.21.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==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow==2.6.3"
  • >= 2.7.0, < 2.7.1 2.7.1
    pip install --upgrade "tensorflow==2.7.1"

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended solution is to upgrade to the patched version of TensorFlow.

Conclusion

The vulnerability in TensorFlow (CVE-2022-23595) has been identified and patched in version 2.8.0. It is crucial to upgrade to the latest version to mitigate the risk of a null pointer dereference and potential denial of service (DoS) attacks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open-source machine learning framework developed by Google. It provides tools and resources for building and deploying machine learning models.

A null pointer dereference occurs when a program attempts to access or dereference a null pointer, which does not point to a valid memory location. This can lead to a crash or unexpected behavior.

The vulnerability can cause a TensorFlow application to crash, resulting in a denial of service (DoS) condition. An attacker may be able to exploit this vulnerability to disrupt the availability of TensorFlow-based systems.

To fix this vulnerability, upgrade to the latest version of TensorFlow (2.8.0) by running the command pip install --upgrade tensorflow.

It is recommended to check the TensorFlow release notes and documentation for any additional steps or considerations specific to your environment.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 2.21.0 as of 22 Oct 2026

pip install --upgrade "tensorflow==2.21.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==2.5.3"
  • >= 2.6.0, < 2.6.3 2.6.3
    pip install --upgrade "tensorflow==2.6.3"
  • >= 2.7.0, < 2.7.1 2.7.1
    pip install --upgrade "tensorflow==2.7.1"

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