CVE-2020-15209: Null Pointer Dereference in tensorflow-gpu

tensorflow-gpu Updated 02 Oct 2025

Summary

25/09/2020
Yes i
Unrated
Not published

CVE-2020-15209: In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, a crafted TFLite model can force a node to have as input a tensor backed by a nullptr buffer. Affects tensorflow-gpu across 6 version ranges.

< 0b5662bc2be13a8c8f044d925d87fb6e56247cd8 < 1.15.4 >= 2.0.0, < 2.0.3 >= 2.1.0, < 2.1.2 >= 2.2.0, < 2.2.1 >= 2.3.0, < 2.3.1

Fixed in 5 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Also tracked for

The same CVE-2020-15209 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-gpu is a Python package that provides GPU support for TensorFlow, an open-source machine learning framework. It allows users to leverage the power of GPUs to accelerate their TensorFlow computations. This package is widely used in various machine learning and deep learning applications.

Vulnerability Detail

A crafted TFLite model in tensorflow-lite versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1, and 2.3.1 can exploit a vulnerability that leads to a null pointer dereference. By changing a buffer index in the flatbuffer serialization, a read-only tensor can be converted to a read-write one, causing a null pointer dereference when the uninitialized buffer is accessed. This vulnerability can be exploited by an attacker to crash the application or potentially execute arbitrary code.

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.

  • < 1.15.4 1.15.4
    pip install --upgrade "tensorflow-gpu==1.15.4"
  • >= 2.0.0, < 2.0.3 2.0.3
    pip install --upgrade "tensorflow-gpu==2.0.3"
  • >= 2.1.0, < 2.1.2 2.1.2
    pip install --upgrade "tensorflow-gpu==2.1.2"
  • >= 2.2.0, < 2.2.1 2.2.1
    pip install --upgrade "tensorflow-gpu==2.2.1"
  • >= 2.3.0, < 2.3.1 2.3.1
    pip install --upgrade "tensorflow-gpu==2.3.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 known workaround for this vulnerability. It is recommended to update to the patched versions as soon as possible.

Conclusion

The null pointer dereference vulnerability in tensorflow-gpu can be mitigated by updating to the patched versions. It is important to keep software dependencies up to date to ensure the security and stability of applications. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow-gpu →

Share this vulnerability

FAQ

tensorflow-gpu is a Python package that provides GPU support for TensorFlow, an open-source machine learning framework.

Versions of tensorflow-gpu before 1.15.4, 2.0.3, 2.1.2, 2.2.1, and 2.3.1 are affected by this vulnerability.

This vulnerability can be exploited by an attacker to crash the application or potentially execute arbitrary code.

There is no known workaround for this vulnerability. It is recommended to update to the patched versions.

Users can update tensorflow-gpu to the patched versions (1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1) using the package manager or by manually installing the updated version.

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.

  • < 1.15.4 1.15.4
    pip install --upgrade "tensorflow-gpu==1.15.4"
  • >= 2.0.0, < 2.0.3 2.0.3
    pip install --upgrade "tensorflow-gpu==2.0.3"
  • >= 2.1.0, < 2.1.2 2.1.2
    pip install --upgrade "tensorflow-gpu==2.1.2"
  • >= 2.2.0, < 2.2.1 2.2.1
    pip install --upgrade "tensorflow-gpu==2.2.1"
  • >= 2.3.0, < 2.3.1 2.3.1
    pip install --upgrade "tensorflow-gpu==2.3.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