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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/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.57%, higher than 48% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-25T18:28:34.000Z
- Modified: 2026-09-08T08:48:19.943Z
- Also known as: GHSA-p5f8-gfw5-33w4, BIT-TENSORFLOW-2020-15201, PYSEC-2020-124, PYSEC-2020-281, PYSEC-2020-316
- Weaknesses: CWE-20, CWE-122, CWE-787
- Assigned by: GitHub_M

## Description

In Tensorflow before version 2.3.1, the `RaggedCountSparseOutput` implementation does not validate that the input arguments form a valid ragged tensor. In particular, there is no validation that the values in the `splits` tensor generate a valid partitioning of the `values` tensor. Hence, the code is prone to heap buffer overflow. If `split_values` does not end with a value at least `num_values` then the `while` loop condition will trigger a read outside of the bounds of `split_values` once `batch_idx` grows too large. 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
- 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: 2.3.0
- tensorflow (Bitnami): from 2.3.0 before 2.3.1

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/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:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-p5f8-gfw5-33w4> (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-15201> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-281.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-316.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-124.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-15201](https://www.cve.org/CVERecord?id=CVE-2020-15201), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-p5f8-gfw5-33w4](https://github.com/advisories/GHSA-p5f8-gfw5-33w4), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15201](https://nvd.nist.gov/vuln/detail/CVE-2020-15201), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-124](https://osv.dev/vulnerability/PYSEC-2020-124), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-281](https://osv.dev/vulnerability/PYSEC-2020-281), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-316](https://osv.dev/vulnerability/PYSEC-2020-316), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15201](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15201), Apache-2.0, modified 2026-09-08

---

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