CVE-2020-15198
Python vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48039CRITICAL9.1
  • Python logoPython
  • meta-ads-mcp
NoYesAug 07, 2026
CVE-2026-48169HIGH8.8
  • Python logoPython
  • praisonai-platform
NoYesAug 07, 2026
GHSA-wvpp-8hx9-p66jHIGH8.8
  • Python logoPython
  • gitpython
NoYesAug 07, 2026
CVE-2026-71870MEDIUM4.8
  • Python logoPython
  • pypdf2
NoYesAug 07, 2026
CVE-2026-71852MEDIUM4.8
  • Python logoPython
  • pypdf
NoYesAug 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management