CVE-2020-15197
JSON

6.3medium

Denial of Service in Tensorflow

Severity
6.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.73% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-qc53-44cj-vfvxBIT-TENSORFLOW-2020-15197PYSEC-2020-120PYSEC-2020-277PYSEC-2020-312

Description

In Tensorflow before version 2.3.1, the `SparseCountSparseOutput` implementation does not validate that the input arguments form a valid sparse tensor. In particular, there is no validation that the `indices` tensor has rank 2. This tensor must be a matrix because code assumes its elements are accessed as elements of a matrix. However, malicious users can pass in tensors of different rank, resulting in a `CHECK` assertion failure and a crash. This can be used to cause denial of service in serving installations, if users are allowed to control the components of the input sparse tensor. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.

Affected

Product or packageVersionsReported by
tensorflow tensorflow= 2.3.0CVE List
tensorflow (PyPI)from 2.3.0 before 2.3.1, before 3cbb917b4714766030b28eba9fb41bb97ce9ee02, before 2.3.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-cpu (PyPI)from 2.3.0 before 2.3.1, before 3cbb917b4714766030b28eba9fb41bb97ce9ee02, before 2.3.1GitHub Advisory Database, PyPA Advisory Database
tensorflow-gpu (PyPI)from 2.3.0 before 2.3.1, before 3cbb917b4714766030b28eba9fb41bb97ce9ee02, before 2.3.1GitHub Advisory Database, PyPA Advisory Database
google tensorflow2.3.0NVD
tensorflow (Bitnami)from 2.3.0 before 2.3.1Bitnami Vulnerability Database

All scores

GitHub_M6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
GitHub6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H
NVD6.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H
NVD3.5low CVSS:2.0AV:N/AC:M/Au:S/C:N/I:N/A:P
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

In Tensorflow before version 2.3.1, the `SparseCountSparseOutput` implementation does not validate that the input arguments form a valid sparse tensor. In particular, there is no validation that the `indices` tensor has rank 2. This tensor must be a matrix because code assumes its elements are accessed as elements of a matrix. However, malicious users can pass in tensors of different rank, resulting in a `CHECK` assertion failure and a crash. This can be used to cause denial of service in serving installations, if users are allowed to control the components of the input sparse tensor. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.

GitHub Advisory Database
Impact

The SparseCountSparseOutput implementation does not validate that the input arguments form a valid sparse tensor. In particular, there is no validation that the indices tensor has rank 2. This tensor must be a matrix because code assumes its elements are accessed as elements of a matrix: https://github.com/tensorflow/tensorflow/blob/0e68f4d3295eb0281a517c3662f6698992b7b2cf/tensorflow/core/kernels/count_ops.cc#L185

However, malicious users can pass in tensors of different rank, resulting in a CHECK assertion failure and a crash. This can be used to cause denial of service in serving installations, if users are allowed to control the components of the input sparse tensor.

Patches

We have patched the issue in 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and will release a patch release.

We recommend users to upgrade to TensorFlow 2.3.1.

For more information

Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Attribution

This vulnerability is a variant of GHSA-p5f8-gfw5-33w4

NVD (es)

En Tensorflow anteriores a la versión 2.3.1, la implementación de "SparseCountSparseOutput" no comprueba que los argumentos de entrada formen un tensor disperso válido. En particular, no existe comprobación de que el tensor de "índices" tenga rango 2. Este tensor debe ser una matriz porque el código asume que se accede a sus elementos como elementos de una matriz. Sin embargo, los usuarios maliciosos pueden pasar tensores de diferente rango, lo que resulta en un fallo de aserción "CHECK" y un bloqueo. Esto puede ser usado para causar denegación de servicio en instalaciones de servicio, si los usuarios pueden controlar los componentes del tensor disperso de entrada. El problema es parcheado en el commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 y es publicado en TensorFlow versión 2.3.1

References

Sources

SourceRecordLicence
CVE ListCVE-2020-15197 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-qc53-44cj-vfvx changed 2026-07-08CC-BY-4.0
NVDCVE-2020-15197 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2020-120 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-277 changed 2023-12-06CC-BY-4.0
PyPA Advisory DatabasePYSEC-2020-312 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-TENSORFLOW-2020-15197 changed 2026-09-08Apache-2.0