CVE-2020-26271
Heap out of bounds access in MakeEdge in TensorFlow
- Published
- Updated
- Reserved
- 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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
| NVDNVD · Modified | 3.1 | Low3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.22% · top 88% of all CVEs (6 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.4.
Weakness
Affected products
- affected < 1.15.5
- affected >= 2.0.0, < 2.0.4
- affected >= 2.1.0, < 2.1.3
- affected >= 2.2.0, < 2.2.2
- affected >= 2.3.0, < 2.3.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPItensorflowGHSA-q263-fvxm-m5mw (opens in a new tab)
- PyPItensorflow-cpuGHSA-q263-fvxm-m5mw (opens in a new tab)
- PyPItensorflow-gpuGHSA-q263-fvxm-m5mw (opens in a new tab)
References (2)
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q263-fvxm-m5mw (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-q263-fvxm-m5mw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-26271)Record last updated .