PyPI: tensorflow-gpu
CVE-2020-15199
Safety vulnerability ID: SFTY-20200925-65656
Safety legacy ID: pyup.io-56338
Tensorflow-gpu 2.3.1 includes a fix for CVE-2020-15199: In Tensorflow before version 2.3.1, the "RaggedCountSparseOutput" does not validate that the input arguments form a valid ragged tensor. In particular, there is no validation that the "splits" tensor has the minimum required number of elements. Code uses this quantity to initialize a different data structure. Since "BatchedMap" is equivalent to a vector, it needs to have at least one element to not be "nullptr". If user passes a "splits" tensor that is empty or has exactly one element, we get a "SIGABRT" signal raised by the operating system. The issue was patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-x5cp-9pcf-pp3h
Overview
Denial of Service in Tensorflow
Advisory
Tensorflow-gpu 2.3.1 includes a fix for CVE-2020-15199: In Tensorflow before version 2.3.1, the "RaggedCountSparseOutput" does not validate that the input arguments form a valid ragged tensor. In particular, there is no validation that the "splits" tensor has the minimum required number of elements. Code uses this quantity to initialize a different data structure. Since "BatchedMap" is equivalent to a vector, it needs to have at least one element to not be "nullptr". If user passes a "splits" tensor that is empty or has exactly one element, we get a "SIGABRT" signal raised by the operating system. The issue was patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02. https://github.com/tensorflow/tensorflow/security/advisories/GHSA-x5cp-9pcf-pp3h
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20200925-65656/CVE-2020-15199
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-x5cp-9pcf-pp3h
- https://github.com/tensorflow/tensorflow/commit/3cbb917b4714766030b28eba9fb41bb97ce9ee02
- https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2020-15199
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-279.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-314.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-122.yaml
- https://github.com/advisories/GHSA-x5cp-9pcf-pp3h
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
