{"id":"CVE-2020-26271","published":"2020-12-10T22:10:14Z","modified":"2024-08-04T15:56:04Z","title":"Heap out of bounds access in MakeEdge in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00216,"percentile":0.12283,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q263-fvxm-m5mw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":2.46},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 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"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<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"],"patched":["1.15.5","2.0.4","2.1.3","2.2.2","2.3.2"],"from":["GHSA-q263-fvxm-m5mw","PYSEC-2020-257"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<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"],"patched":["1.15.5","2.0.4","2.1.3","2.2.2","2.3.2"],"from":["GHSA-q263-fvxm-m5mw","PYSEC-2020-302"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<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"],"patched":["1.15.5","2.0.4","2.1.3","2.2.2","2.3.2"],"from":["GHSA-q263-fvxm-m5mw","PYSEC-2020-337"],"provenance":"source"}],"summary":{"text":"TensorFlow contains a heap out-of-bounds access flaw in the MakeEdge function, which builds the computation graph when a saved model is loaded: it checks that the tensor types match but never checks that the output and input indices fall within their arrays. An attacker who can get a crafted saved model loaded, which requires local access and some privileges along with the victim's ability to load the model, can read uninitialized heap memory, and with a sufficiently large out-of-bounds index can leak library addresses.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:51Z"},"euvd":{"id":"EUVD-2020-0218","exploited":false,"provenance":"source"}}