{"id":"CVE-2020-26271","aliases":["CVE-2020-26271","GHSA-q263-fvxm-m5mw","BIT-TENSORFLOW-2020-26271","PYSEC-2020-257","PYSEC-2020-302","PYSEC-2020-337"],"related":[],"kind":"vulnerability","state":"published","title":"Heap out of bounds access in MakeEdge in TensorFlow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nUnder certain cases, loading a saved model can result in accessing uninitialized memory while building the computation graph. The [`MakeEdge` function](https://github.com/tensorflow/tensorflow/blob/3616708cb866365301d8e67b43b32b46d94b08a0/tensorflow/core/common_runtime/graph_constructor.cc#L1426-L1438) 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:\n\n```cc\n  DataType src_out = src->output_type(output_index);\n  DataType dst_in = dst->input_type(input_index);\n  //...\n```\n\nHowever, 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.\n\nIn 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.\n\n### Patches\nWe have patched the issue in GitHub commit [0cc38aaa4064fd9e79101994ce9872c6d91f816b](https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b) and will release TensorFlow 2.4.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.\n\nSince this issue also impacts TF versions before 2.4, we will patch all releases between 1.15 and 2.3 inclusive.\n\n### For more information\nPlease consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En las versiones afectadas de TensorFlow en determinados casos, cargar un modelo guardado puede resultar en el acceso a la memoria no inicializada mientras se construye el gráfico de computación.&#xa0;La función MakeEdge crea un perímetro entre un tensor de salida del nodo src (dado por output_index) y la ranura de entrada del nodo dst (dado por input_index).&#xa0;Esto solo es posible si los tipos de tensores en ambos lados coinciden, por lo que la función comienza obteniendo los valores de DataType correspondientes y comparándolos para la igualdad.&#xa0;Sin embargo, no se comprueba que los índices apunten al interior de las matrices en las que indexan.&#xa0;Por lo tanto, esto puede resultar en un acceso a datos fuera de límites de los correspondientes arreglos asignados a la pila.&#xa0;En la mayoría de los escenarios, esto puede manifestarse como un acceso a los datos no inicializados,&#xa0;pero si el índice apunta lejos de los límites de las matrices, esto se puede usar para filtrar direcciones de la biblioteca.&#xa0;Esto es corregido en las versiones 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2 y 2.4.0.","source":"nvd"}],"published":"2020-12-10T19:07:34.000Z","modified":"2026-09-10T16:01:47.572Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":3.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","score":2.1,"rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-125","CWE-908"],"affected":[{"ranges":[{"version":"< 1.15.5","status":"affected"},{"version":">= 2.0.0, < 2.0.4","status":"affected"},{"version":">= 2.1.0, < 2.1.3","status":"affected"},{"version":">= 2.2.0, < 2.2.2","status":"affected"},{"version":">= 2.3.0, < 2.3.2","status":"affected"}],"vendor":"tensorflow","product":"tensorflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.5"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.4"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.2"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.5"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.4"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.2"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.5"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.4"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.3"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.2"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.15.5"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.4"},{"status":"affected","introduced":"2.1.0","fixed":"2.1.3"},{"status":"affected","introduced":"2.2.0","fixed":"2.2.2"},{"status":"affected","introduced":"2.3.0","fixed":"2.3.2"}],"vendor":"google","product":"tensorflow","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"0cc38aaa4064fd9e79101994ce9872c6d91f816b"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.5"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.4"},{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.3"},{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.2"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"0cc38aaa4064fd9e79101994ce9872c6d91f816b"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.5"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.4"},{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.3"},{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.2"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"0cc38aaa4064fd9e79101994ce9872c6d91f816b"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.5"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.4"},{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.3"},{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.2"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.15.5"},{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.4"},{"type":"semver","introduced":"2.1.0","status":"affected","fixed":"2.1.3"},{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.2"},{"type":"semver","introduced":"2.3.0","status":"affected","fixed":"2.3.2"}],"ecosystem":"Bitnami","package":"tensorflow","purl":"pkg:bitnami/tensorflow","source":"bitnami"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q263-fvxm-m5mw","tags":["advisory","exploit","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b","tags":["advisory","fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26271","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-302.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-337.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-257.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-26271","url":"https://www.cve.org/CVERecord?id=CVE-2020-26271","licence":"CVE Terms of Use","modified":"2024-08-04T15:56:04.342Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q263-fvxm-m5mw","url":"https://github.com/advisories/GHSA-q263-fvxm-m5mw","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:06.054Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-26271","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26271","licence":"Public domain","modified":"2026-06-17T03:07:58.140Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-257","url":"https://osv.dev/vulnerability/PYSEC-2020-257","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:27.928Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-302","url":"https://osv.dev/vulnerability/PYSEC-2020-302","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:27.928Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-337","url":"https://osv.dev/vulnerability/PYSEC-2020-337","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:27.928Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TENSORFLOW-2020-26271","url":"https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-26271","licence":"Apache-2.0","modified":"2026-09-10T16:01:47.572Z"}],"updatedAt":"2026-11-25T22:57:56.149Z","epss":{"score":0.00216,"percentile":0.12779,"date":"2026-12-02T12:00:21.000Z"}}