# CVE-2020-15198: Heap buffer overflow in Tensorflow

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-25T18:28:22.000Z
- Modified: 2026-09-10T03:49:25.846Z
- Also known as: GHSA-jc87-6vpp-7ff3, BIT-TENSORFLOW-2020-15198, PYSEC-2020-121, PYSEC-2020-278, PYSEC-2020-313
- Weaknesses: CWE-119, CWE-122
- Assigned by: GitHub_M

## 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 the same shape as the `values` one. The values in these tensors are always accessed in parallel. Thus, a shape mismatch can result in accesses outside the bounds of heap allocated buffers. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: >= 2.3.0, < 2.3.1
- tensorflow (PyPI): from 2.3.0 before 2.3.1; before 3cbb917b4714766030b28eba9fb41bb97ce9ee02; before 2.3.1
- tensorflow-cpu (PyPI): from 2.3.0 before 2.3.1; before 3cbb917b4714766030b28eba9fb41bb97ce9ee02; before 2.3.1
- tensorflow-gpu (PyPI): from 2.3.0 before 2.3.1; before 3cbb917b4714766030b28eba9fb41bb97ce9ee02; before 2.3.1
- google tensorflow: from 2.3.0 before 2.3.1
- tensorflow (Bitnami): from 2.3.0 before 2.3.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-jc87-6vpp-7ff3> (exploit, advisory, third-party-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2020-15198> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-278.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-313.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-121.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-15198](https://www.cve.org/CVERecord?id=CVE-2020-15198), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-jc87-6vpp-7ff3](https://github.com/advisories/GHSA-jc87-6vpp-7ff3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-15198](https://nvd.nist.gov/vuln/detail/CVE-2020-15198), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-121](https://osv.dev/vulnerability/PYSEC-2020-121), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-278](https://osv.dev/vulnerability/PYSEC-2020-278), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-313](https://osv.dev/vulnerability/PYSEC-2020-313), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15198](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15198), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-15198 · Whole record: https://cve.day/CVE-2020-15198.json · Rebuilt by cve.day 2026-11-25T22:57:54.948Z
