NULL Pointer Dereference and Access of Uninitialized Pointer in TensorFlow

tensorflow Updated 02 Oct 2025

Summary

09/02/2022
CRITICAL
Yes i
Critical
9.3

GHSA-h6gw-r52c-724r: NULL Pointer Dereference and Access of Uninitialized Pointer 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 ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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. The boosted trees implementation in TensorFlow allows users to train and use gradient boosted decision trees for various tasks. However, this implementation has been found to have vulnerabilities that can lead to security issues.

Vulnerability Detail

The boosted trees implementation in TensorFlow lacks proper validation, which allows malicious users to read and write outside the bounds of heap allocated data. This can result in a NULL pointer dereference or access of uninitialized pointers, leading to denial of service attacks or triggering CHECK failures. These vulnerabilities have been reported by security researchers and have been assigned a CVSS score of 9.3, indicating a critical severity level. It is important to note that these vulnerabilities have been addressed in the latest versions of TensorFlow, and it is recommended to migrate to the TensorFlow Decision Forests project, which is actively maintained and supports more features.

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 provided for these vulnerabilities. The recommended approach is to update TensorFlow to the latest version or migrate to TensorFlow Decision Forests.

Conclusion

The vulnerabilities in TensorFlow's boosted trees implementation pose a critical security risk. It is crucial to update to the latest version of TensorFlow or migrate to TensorFlow Decision Forests to ensure the security and integrity of machine learning models. 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.

Boosted trees in TensorFlow are a machine learning technique that combines multiple decision trees to make predictions. It is used for tasks such as classification and regression.

The vulnerabilities in TensorFlow's boosted trees implementation can allow malicious users to read and write outside the bounds of allocated data, leading to denial of service attacks or CHECK failures.

To fix the vulnerabilities, it is recommended to update TensorFlow to version 2.8.0 or later. Alternatively, you can migrate to the TensorFlow Decision Forests project.

There is no specific workaround provided. It is recommended to update TensorFlow or migrate to TensorFlow Decision Forests.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

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