# CVE-2020-26271: Heap out of bounds access in MakeEdge in TensorFlow

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/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.22%, higher than 12% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-10T19:07:34.000Z
- Modified: 2026-09-10T16:01:47.572Z
- Also known as: GHSA-q263-fvxm-m5mw, BIT-TENSORFLOW-2020-26271, PYSEC-2020-257, PYSEC-2020-302, PYSEC-2020-337
- Weaknesses: CWE-125, CWE-908
- Assigned by: GitHub_M

## Description

In affected versions of TensorFlow under certain cases, loading a saved model can result in accessing uninitialized memory while building the computation graph. The MakeEdge function creates an edge between one output tensor of the src node (given by output_index) and the input slot of the dst node (given by input_index). This is only possible if the types of the tensors on both sides coincide, so the function begins by obtaining the corresponding DataType values and comparing these for equality. However, there is no check that the indices point to inside of the arrays they index into. Thus, this can result in accessing data out of bounds of the corresponding heap allocated arrays. In most scenarios, this can manifest as unitialized data access, but if the index points far away from the boundaries of the arrays this can be used to leak addresses from the library. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 1.15.5; >= 2.0.0, < 2.0.4; >= 2.1.0, < 2.1.3; >= 2.2.0, < 2.2.2; >= 2.3.0, < 2.3.2
- tensorflow (PyPI): before 1.15.5; from 2.0.0 before 2.0.4; from 2.1.0 before 2.1.3; from 2.2.0 before 2.2.2; from 2.3.0 before 2.3.2; before 0cc38aaa4064fd9e79101994ce9872c6d91f816b
- tensorflow-cpu (PyPI): before 1.15.5; from 2.0.0 before 2.0.4; from 2.1.0 before 2.1.3; from 2.2.0 before 2.2.2; from 2.3.0 before 2.3.2; before 0cc38aaa4064fd9e79101994ce9872c6d91f816b
- tensorflow-gpu (PyPI): before 1.15.5; from 2.0.0 before 2.0.4; from 2.1.0 before 2.1.3; from 2.2.0 before 2.2.2; from 2.3.0 before 2.3.2; before 0cc38aaa4064fd9e79101994ce9872c6d91f816b
- google tensorflow: before 1.15.5; from 2.0.0 before 2.0.4; from 2.1.0 before 2.1.3; from 2.2.0 before 2.2.2; from 2.3.0 before 2.3.2
- tensorflow (Bitnami): before 1.15.5; from 2.0.0 before 2.0.4; from 2.1.0 before 2.1.3; from 2.2.0 before 2.2.2; from 2.3.0 before 2.3.2

## Every score

- GitHub_M: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q263-fvxm-m5mw> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b> (advisory, fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26271> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-302.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-337.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-257.yaml> (web)

## Sources

- CVE List: [CVE-2020-26271](https://www.cve.org/CVERecord?id=CVE-2020-26271), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-q263-fvxm-m5mw](https://github.com/advisories/GHSA-q263-fvxm-m5mw), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-26271](https://nvd.nist.gov/vuln/detail/CVE-2020-26271), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-257](https://osv.dev/vulnerability/PYSEC-2020-257), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-302](https://osv.dev/vulnerability/PYSEC-2020-302), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-337](https://osv.dev/vulnerability/PYSEC-2020-337), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-26271](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-26271), Apache-2.0, modified 2026-09-10

---

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