Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-26271
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:39 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-26271
Complete source record
{
"id": "2647dae11dc57f6d731caa63a1f85657b12b5aa5d28752b0a745c66890c5f018",
"url": "https://osv.dev/vulnerability/CVE-2020-26271",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-26271",
"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.",
"evidence": "osv:CVE-2020-26271",
"products": [],
"severity": "low",
"structured": {
"id": "CVE-2020-26271",
"aliases": [
"BIT-tensorflow-2020-26271",
"CVE-2020-26271",
"GHSA-q263-fvxm-m5mw",
"PYSEC-2020-257",
"PYSEC-2020-302",
"PYSEC-2020-337"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/tensorflow/tensorflow",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3db52be7be81a87c623cdeb7f03d3767521c5246"
},
{
"introduced": "64c3d382cadf7bbe8e7e99884bede8284ff67f56"
},
{
"fixed": "cdf2c541c3dd3fb6d03cce4d23fc6c548bc9017c"
},
{
"introduced": "e5bf8de410005de06a7ff5393fafdf832ef1d4ad"
},
{
"fixed": "77f47d6ed6ca1f50b6f2c4919097e625d50398a9"
},
{
"introduced": "2b96f3662bd776e277f86997659e61046b56c315"
},
{
"fixed": "d745ff2a48cebf18e847e8b602a744e97e058946"
},
{
"introduced": "b36436b087bd8e8701ef51718179037cccdfc26e"
},
{
"fixed": "9edbe5075f79a4a95ed14a2be831f9b59e61f49d"
},
{
"fixed": "0cc38aaa4064fd9e79101994ce9872c6d91f816b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.15.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "0cc38aaa4064fd9e79101994ce9872c6d91f816b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.1.2",
"v2.0.3",
"v1.15.4",
"v2.2.1",
"v2.3.1",
"v2.2.0",
"v2.1.1",
"v2.3.0",
"v2.0.2",
"v1.15.3",
"v2.0.1",
"v2.1.0",
"v1.15.2",
"v1.15.0",
"v1.15.0-rc3",
"v2.0.0",
"v1.15.0-rc2",
"v1.15.0-rc1",
"v1.15.0-rc0",
"v1.12.1",
"v1.9.0-rc2",
"v1.6.0-rc1",
"v1.1.0-rc2",
"v1.1.0-rc1",
"0.6.0",
"0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-26271.json",
"vanir_signatures": [
{
"id": "CVE-2020-26271-1918f3b8",
"digest": {
"length": 529,
"function_hash": "160474403644703465032814885090362751013"
},
"source": "https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b",
"target": {
"file": "tensorflow/core/common_runtime/graph_constructor.cc",
"function": "GraphConstructor::MakeEdge"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2020-26271-fa090181",
"digest": {
"threshold": 0.9,
"line_hashes": [
"246302249073193558975993325200968311008",
"63112483980140233714391676694701056481",
"72813380224672222722792523327400720531",
"109224518461182228557436876205457738808",
"107942194748794950554986205189495345936",
"242914202284517432901184786043833814054",
"308921242018771160633452228931529883494",
"142920717307188956548218146900145462585"
]
},
"source": "https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b",
"target": {
"file": "tensorflow/core/common_runtime/graph_constructor.cc"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:10:56Z"
}
}
],
"modified": "2026-10-20T14:10:56.245848833Z",
"provider": "osv",
"references": [
"https://github.com/tensorflow/tensorflow/commit/0cc38aaa4064fd9e79101994ce9872c6d91f816b",
"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-q263-fvxm-m5mw"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-26271",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388678,
"published_at": "2020-12-10T22:15:12.077+00:00"
}