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 package | Versions | Reported by |
|---|---|---|
| tensorflow tensorflow | = 2.3.0 | CVE List |
| tensorflow (PyPI) | from 2.3.0 before 2.3.1, before 3cbb917b4714766030b28eba9fb41bb97ce9ee02, before 2.3.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-cpu (PyPI) | from 2.3.0 before 2.3.1, before 3cbb917b4714766030b28eba9fb41bb97ce9ee02, before 2.3.1 | GitHub Advisory Database, PyPA Advisory Database |
| tensorflow-gpu (PyPI) | from 2.3.0 before 2.3.1, before 3cbb917b4714766030b28eba9fb41bb97ce9ee02, before 2.3.1 | GitHub Advisory Database, PyPA Advisory Database |
| google tensorflow | 2.3.0 | NVD |
| tensorflow (Bitnami) | from 2.3.0 before 2.3.1 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H |
| GitHub | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:H |
| NVD | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:H |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:N/A:P |
| Bitnami Vulnerability Database | medium 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
| https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1 | advisory, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/commit/3cbb917b4714766030b28eba9fb41bb97ce9ee02 | advisory, fix, patch, third-party-advisory, web | |
| https://github.com/tensorflow/tensorflow/security/advisories/GHSA-qc53-44cj-vfvx | advisory, exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15197 | advisory, web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-277.yaml | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-312.yaml | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-120.yaml | web | |
| https://github.com/tensorflow/tensorflow | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15197 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qc53-44cj-vfvx changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2020-15197 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2020-120 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-277 changed 2023-12-06 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2020-312 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-TENSORFLOW-2020-15197 changed 2026-09-08 | Apache-2.0 |