CVE-2020-15191: Undefined behavior in Tensorflow
Summary
CVE-2020-15191: Undefined behavior in Tensorflow. Affects tensorflow across 2 version ranges.
>= 2.2.0, < 2.2.1
>= 2.3.0, < 2.3.1
Fixed in 2.2.1 or 2.3.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow · Bitnami
- tensorflow-cpu · PyPI
- tensorflow-gpu · PyPI
The same CVE-2020-15191 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
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. Tensorflow is widely used in various domains, including research, industry, and academia. However, a vulnerability has been discovered in Tensorflow that can lead to undefined behavior and potential security issues.
Vulnerability Detail
The vulnerability (CVE-2020-15191) in Tensorflow arises when an invalid argument is passed to the dlpack.to_dlpack function. This can cause variables to bind to null pointers, leading to undefined behavior. The issue lies in the improper checking of the status argument, which can result in references being bound to null pointers. This vulnerability can be exploited by an attacker to cause a denial of service or potentially execute arbitrary code. The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.
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.2.0, < 2.2.12.2.1pip install --upgrade "tensorflow==2.2.1" -
>= 2.3.0, < 2.3.12.3.1pip install --upgrade "tensorflow==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 specific workaround provided for this vulnerability. The recommended solution is to upgrade to the patched versions of Tensorflow.
Conclusion
In conclusion, the vulnerability (CVE-2020-15191) in Tensorflow can lead to undefined behavior and potential security issues. It is recommended to upgrade to TensorFlow 2.2.1 or 2.3.1, which include patches for the vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
Tensorflow is an open-source machine learning framework developed by Google. It provides tools and resources for building and deploying machine learning models.
The vulnerability can lead to undefined behavior and potential security issues. It can be exploited by an attacker to cause a denial of service or potentially execute arbitrary code.
To fix this vulnerability, it is recommended to upgrade to TensorFlow 2.2.1 or 2.3.1, which include patches for the issue.
No specific workaround is provided for this vulnerability. Upgrading to the patched versions is the recommended solution.
The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.