{"id":"CVE-2020-15198","published":"2020-09-25T18:40:25Z","modified":"2024-08-04T13:08:22Z","title":"Heap buffer overflow in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In Tensorflow before version 2.3.1, the `SparseCountSparseOutput` implementation does not validate that the input arguments form a valid sparse tensor. In particular, there is no validation that the `indices` tensor has the same shape as the `values` one. The values in these tensors are always accessed in parallel. Thus, a shape mismatch can result in accesses outside the bounds of heap allocated buffers. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00542,"percentile":0.46458,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/commit/3cbb917b4714766030b28eba9fb41bb97ce9ee02","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-jc87-6vpp-7ff3","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":9.29},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= 2.3.0, < 2.3.1"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-jc87-6vpp-7ff3","PYSEC-2020-121"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-jc87-6vpp-7ff3","PYSEC-2020-278"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-jc87-6vpp-7ff3","PYSEC-2020-313"],"provenance":"source"}],"summary":{"text":"A heap buffer overflow in TensorFlow's SparseCountSparseOutput implementation arises because it does not check that the indices tensor matches the shape of the values tensor, so their parallel accesses can read or write outside heap-allocated buffers. Exploitation requires an attacker who can supply crafted sparse tensor inputs to that operation over the network, with the attack complexity being high and no privileges or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:24Z"},"euvd":{"id":"EUVD-2020-0194","exploited":false,"provenance":"source"}}