# CVE-2020-15213: Denial of service in tensorflow-lite

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- 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.76%, higher than 56% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-25T18:28:53.000Z
- Modified: 2026-09-08T08:48:19.895Z
- Also known as: GHSA-hjmq-236j-8m87, BIT-TENSORFLOW-2020-15213, PYSEC-2020-136, PYSEC-2020-293, PYSEC-2020-328
- Weaknesses: CWE-119, CWE-770
- Assigned by: GitHub_M

## Description

In TensorFlow Lite before versions 2.2.1 and 2.3.1, models using segment sum can trigger a denial of service by causing an out of memory allocation in the implementation of segment sum. Since code uses the last element of the tensor holding them to determine the dimensionality of output tensor, attackers can use a very large value to trigger a large allocation. The issue is patched in commit 204945b19e44b57906c9344c0d00120eeeae178a and is released in TensorFlow versions 2.2.1, or 2.3.1. A potential workaround would be to add a custom `Verifier` to limit the maximum value in the segment ids tensor. This only handles the case when the segment ids are stored statically in the model, but a similar validation could be done if the segment ids are generated at runtime, between inference steps. However, if the segment ids are generated as outputs of a tensor during inference steps, then there are no possible workaround and users are advised to upgrade to patched code.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: = 2.2.0; = 2.3.0
- tensorflow (PyPI): from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before 204945b19e44b57906c9344c0d00120eeeae178a
- tensorflow-cpu (PyPI): from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before 204945b19e44b57906c9344c0d00120eeeae178a
- tensorflow-gpu (PyPI): from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before 204945b19e44b57906c9344c0d00120eeeae178a
- google tensorflow: from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1
- tensorflow (Bitnami): from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1

## Every score

- GitHub_M: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`
- NVD: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- 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-hjmq-236j-8m87> (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/204945b19e44b57906c9344c0d00120eeeae178a> (advisory, fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15213> (advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/00c7ed7ce81c2126ebc17dfe7073b5c0efd5ec0a> (web)
- <https://github.com/tensorflow/tensorflow/commit/a4030d8ba3692c438997c27be2dd95f3d5f54827> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-293.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-328.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-136.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)
- <https://github.com/tensorflow/tensorflow/blob/0e68f4d3295eb0281a517c3662f6698992b7b2cf/tensorflow/lite/kernels/segment_sum.cc#L39-L44> (web)

## Sources

- CVE List: [CVE-2020-15213](https://www.cve.org/CVERecord?id=CVE-2020-15213), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hjmq-236j-8m87](https://github.com/advisories/GHSA-hjmq-236j-8m87), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15213](https://nvd.nist.gov/vuln/detail/CVE-2020-15213), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-136](https://osv.dev/vulnerability/PYSEC-2020-136), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-293](https://osv.dev/vulnerability/PYSEC-2020-293), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-328](https://osv.dev/vulnerability/PYSEC-2020-328), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15213](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15213), Apache-2.0, modified 2026-09-08

---

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