CVE-2018-7575: Buffer Overflow Vulnerability in Google TensorFlow
Summary
CVE-2018-7575: Google TensorFlow 1.7.x and earlier is affected by a Buffer Overflow vulnerability. The type of exploitation is context-dependent. Affects tensorflow-cpu versions < 1.7.1. Fixed in 1.7.1. How to fix ↓
Also tracked for
- tensorflow · PyPI
- tensorflow · PyPI
- tensorflow-gpu · PyPI
The same CVE-2018-7575 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 used for building and training various deep learning models. It provides a comprehensive ecosystem of tools, libraries, and resources for developing artificial intelligence applications. TensorFlow is widely adopted and utilized in both research and production environments. However, versions 1.7.x and earlier of TensorFlow are affected by a Buffer Overflow vulnerability.
Vulnerability Detail
The Buffer Overflow vulnerability in Google TensorFlow allows an attacker to overwrite adjacent memory locations beyond the intended buffer boundaries. This can lead to the execution of arbitrary code or the manipulation of program behavior. The exploitation of this vulnerability is context-dependent, meaning the impact and severity may vary based on the specific usage scenario. Successful exploitation could result in remote code execution, denial of service, or information disclosure.
How To Fix
Latest published version: 2.21.0 as of 22 Oct 2026
pip install --upgrade "tensorflow-cpu==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-cpu==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 provided for this vulnerability. It is crucial to apply the recommended fix by updating the TensorFlow package to the patched version.
Conclusion
The Buffer Overflow vulnerability in Google TensorFlow can have severe consequences if left unaddressed. It is crucial to update the TensorFlow package to the latest patched version to mitigate the risk of exploitation. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow-cpu →
FAQ
TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem for building and training deep learning models.
A Buffer Overflow vulnerability occurs when a program writes data beyond the boundaries of a fixed-size buffer, leading to memory corruption and potential code execution.
The exploitation of this vulnerability requires an attacker to craft a specific input that triggers the Buffer Overflow condition. This can be done through maliciously crafted data or input that exceeds the buffer size.
Successful exploitation of this vulnerability can result in remote code execution, denial of service, or information disclosure. The impact may vary depending on the specific usage scenario.
Yes, the recommended fix is to update the TensorFlow package to version 1.7.1 or later, which includes patches and security enhancements to address the Buffer Overflow vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow-cpu.