CVE-2018-8825: Buffer Overflow in Google TensorFlow

tensorflow Updated 02 Oct 2025

Summary

23/04/2019
Yes i
High
8.8

CVE-2018-8825: Google TensorFlow 1.7 and below is affected by: Buffer Overflow. The impact is: execute arbitrary code (local). Affects tensorflow versions < 1.7.1. Fixed in 1.7.1. How to fix ↓

Also tracked for

The same CVE-2018-8825 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 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

Google TensorFlow is an open-source machine learning framework used for building and training various deep learning models. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and deploying machine learning applications. TensorFlow versions 1.7 and below are impacted by a buffer overflow vulnerability.

Vulnerability Detail

The buffer overflow vulnerability in Google TensorFlow allows an attacker to execute arbitrary code on a local system. This type of vulnerability occurs when a program writes more data to a buffer than it can hold, resulting in the overflow of adjacent memory locations. Exploiting this vulnerability can lead to unauthorized code execution, potentially compromising the confidentiality, integrity, and availability of the affected system.

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 version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.7.1

This is the first release that contains the fix.

pip install --upgrade "tensorflow==1.7.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, applying the recommended fix by upgrading to a patched version of TensorFlow is the best approach to address the buffer overflow issue.

Conclusion

In conclusion, the buffer overflow vulnerability in Google TensorFlow versions 1.7 and below poses a significant risk to the security and stability of affected systems. It is crucial to promptly upgrade to version 1.7.1 or above to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

A buffer overflow vulnerability occurs when a program writes more data to a buffer than it can hold, causing the excess data to overflow into adjacent memory locations. This can lead to the execution of arbitrary code and potential system compromise.

The impact of this vulnerability is the ability for an attacker to execute arbitrary code on a local system. This can result in unauthorized access, data breaches, and potential disruption of services.

Google TensorFlow versions 1.7 and below are affected by this buffer overflow vulnerability.

To protect your system, it is recommended to upgrade your Google TensorFlow installation to version 1.7.1 or above, which includes patches to mitigate the buffer overflow vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, providing valuable insights without requiring access to the code or installation.

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 version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.7.1

This is the first release that contains the fix.

pip install --upgrade "tensorflow==1.7.1"

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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