
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2020-15198 affects TensorFlow versions before 2.3.1. The vulnerability exists in the SparseCountSparseOutput implementation which fails to validate that input arguments form a valid sparse tensor. Specifically, the implementation does not verify that the indices tensor has the same shape as the values tensor. The vulnerability was discovered and disclosed in September 2020, with a patch released in TensorFlow version 2.3.1 (GitHub Advisory).
The vulnerability occurs in the parallel access of values in the indices and values tensors without proper shape validation. When there is a shape mismatch between these tensors, it can lead to accesses outside the bounds of heap allocated buffers. The issue was patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 by adding validation checks to ensure the indices tensor is 2-dimensional and that the number of values matches the first dimension of indices (TensorFlow Commit).
The vulnerability can result in heap buffer overflow due to invalid indices in SparseCountSparseOutput operations. This could potentially lead to memory corruption and possible code execution. The severity is rated as Moderate according to the official security advisory (GitHub Advisory).
The vulnerability can be triggered by providing mismatched shapes for the indices and values tensors to the SparseCountSparseOutput operation. This is a variant of another vulnerability (GHSA-p5f8-gfw5-33w4) according to the security advisory (GitHub Advisory).
Users are recommended to upgrade to TensorFlow version 2.3.1 or later, which contains the fix for this vulnerability. The patch implements proper validation checks for tensor shapes and ensures compatibility between indices and values tensors (TensorFlow Release).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."