Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-15197
Python vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2020-15197) was discovered in TensorFlow versions before 2.3.1, specifically affecting the SparseCountSparseOutput implementation. The vulnerability was disclosed and patched on September 24, 2020. The issue affected the core functionality of TensorFlow's sparse tensor operations (GitHub Advisory).

Technical details

The vulnerability exists in the SparseCountSparseOutput implementation where the code fails to validate that the input arguments form a valid sparse tensor. Specifically, there is no validation that the indices tensor has rank 2, despite the code assuming its elements are accessed as elements of a matrix. The issue is located in the file tensorflow/tensorflow/core/kernels/count_ops.cc (TensorFlow Commit).

Impact

Malicious users can exploit this vulnerability by passing tensors of different rank, which results in a CHECK assertion failure and subsequent crash. This can be leveraged to cause denial of service in serving installations where users have control over the components of the input sparse tensor (GitHub Advisory).

Exploitability

The vulnerability can be exploited when users have control over the input components of the sparse tensor. The attack vector requires the ability to provide malformed input to the SparseCountSparseOutput operation (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in TensorFlow version 2.3.1. Users are recommended to upgrade to this version or later. The fix includes proper validation of input arguments and additional checks for tensor ranks (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-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • python-anyio
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • litellm-1.90
NoYesSep 18, 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