# CVE-2020-15209: Null pointer dereference in tensorflow-lite

- 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.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-25T18:28:46.000Z
- Modified: 2026-09-08T08:48:19.849Z
- Also known as: GHSA-qh32-6jjc-qprm, BIT-TENSORFLOW-2020-15209, PYSEC-2020-132, PYSEC-2020-289, PYSEC-2020-324
- Weaknesses: CWE-476
- Assigned by: GitHub_M

## Description

In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, a crafted TFLite model can force a node to have as input a tensor backed by a `nullptr` buffer. This can be achieved by changing a buffer index in the flatbuffer serialization to convert a read-only tensor to a read-write one. The runtime assumes that these buffers are written to before a possible read, hence they are initialized with `nullptr`. However, by changing the buffer index for a tensor and implicitly converting that tensor to be a read-write one, as there is nothing in the model that writes to it, we get a null pointer dereference. The issue is patched in commit 0b5662bc, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 1.15.4; >= 2.0.0, < 2.0.3; >= 2.1.0, < 2.1.2; >= 2.2.0, < 2.2.1; >= 2.3.0, < 2.3.1
- tensorflow (PyPI): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before 0b5662bc2be13a8c8f044d925d87fb6e56247cd8
- tensorflow-cpu (PyPI): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before 0b5662bc2be13a8c8f044d925d87fb6e56247cd8
- tensorflow-gpu (PyPI): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before 0b5662bc2be13a8c8f044d925d87fb6e56247cd8
- google tensorflow: before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1
- opensuse leap: 15.2
- tensorflow (Bitnami): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; 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-qh32-6jjc-qprm> (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/0b5662bc2be13a8c8f044d925d87fb6e56247cd8> (advisory, fix, patch, third-party-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15209> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-289.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-324.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-132.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-15209](https://www.cve.org/CVERecord?id=CVE-2020-15209), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qh32-6jjc-qprm](https://github.com/advisories/GHSA-qh32-6jjc-qprm), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15209](https://nvd.nist.gov/vuln/detail/CVE-2020-15209), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-132](https://osv.dev/vulnerability/PYSEC-2020-132), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-289](https://osv.dev/vulnerability/PYSEC-2020-289), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-324](https://osv.dev/vulnerability/PYSEC-2020-324), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15209](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15209), Apache-2.0, modified 2026-09-08

---

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