# CVE-2020-15200: Segfault in Tensorflow

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.85%, higher than 56% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-25T18:28:32.000Z
- Modified: 2026-09-08T08:48:19.897Z
- Also known as: GHSA-x7rp-74x2-mjf3, BIT-TENSORFLOW-2020-15200, PYSEC-2020-123, PYSEC-2020-280, PYSEC-2020-315
- 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. Thus, the code sets up conditions to cause a heap buffer overflow. A `BatchedMap` is equivalent to a vector where each element is a hashmap. However, if the first element of `splits_values` is not 0, `batch_idx` will never be 1, hence there will be no hashmap at index 0 in `per_batch_counts`. Trying to access that in the user code results in a segmentation fault. 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 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-x7rp-74x2-mjf3> (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-15200> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-280.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-315.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-123.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-15200](https://www.cve.org/CVERecord?id=CVE-2020-15200), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-x7rp-74x2-mjf3](https://github.com/advisories/GHSA-x7rp-74x2-mjf3), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15200](https://nvd.nist.gov/vuln/detail/CVE-2020-15200), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-123](https://osv.dev/vulnerability/PYSEC-2020-123), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-280](https://osv.dev/vulnerability/PYSEC-2020-280), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-315](https://osv.dev/vulnerability/PYSEC-2020-315), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15200](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15200), Apache-2.0, modified 2026-09-08

---

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