CVE-2018-8825: Buffer Overflow in Google TensorFlow 1.7 and below
Summary
CVE-2018-8825: Google TensorFlow 1.7 and below is affected by: Buffer Overflow. The impact is: execute arbitrary code (local). Affects tensorflow-gpu versions < 1.7.1. Fixed in 1.7.1. How to fix ↓
Also tracked for
- tensorflow · PyPI
- tensorflow · PyPI
- tensorflow-cpu · PyPI
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.
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.
No signup required · Results in about 60 seconds
Background
Google TensorFlow is an open-source machine learning framework widely used for building and training neural networks. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and deploying machine learning models. TensorFlow 1.7 and below versions are impacted by a buffer overflow vulnerability.
Vulnerability Detail
The buffer overflow vulnerability in Google TensorFlow 1.7 and below allows an attacker to execute arbitrary code locally. This type of vulnerability occurs when a program writes more data into a buffer than it can hold, causing the excess data to overflow into adjacent memory locations. By exploiting this vulnerability, an attacker can manipulate the program's execution and potentially execute malicious 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 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-gpu==1.7.1"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The buffer overflow vulnerability in Google TensorFlow 1.7 and below can be mitigated by upgrading to version 1.7.1 or above. It is crucial to promptly apply the necessary updates to ensure the security and integrity of machine learning models and systems. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow-gpu →
FAQ
Google TensorFlow is an open-source machine learning framework used for building and training neural networks. It provides a wide range of tools and resources for developing and deploying machine learning models.
A buffer overflow vulnerability occurs when a program writes more data into a buffer than it can hold, causing the excess data to overflow into adjacent memory locations. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code.
The buffer overflow vulnerability in Google TensorFlow 1.7 and below allows an attacker to execute arbitrary code locally. This means that an attacker with access to the vulnerable system can potentially manipulate the program's execution and execute malicious code.
To fix this vulnerability, it is recommended to upgrade to TensorFlow version 1.7.1 or above. The newer version includes patches and security enhancements to mitigate the buffer overflow vulnerability. Users can update their TensorFlow installation by running the following command: pip install --upgrade tensorflow-gpu
Currently, there is no known workaround for this vulnerability. It is strongly advised to upgrade to the patched version of TensorFlow to mitigate the risk.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-gpu.