{"id":"CVE-2020-15201","published":"2020-09-25T18:46:21Z","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 `RaggedCountSparseOutput` implementation does not validate that the input arguments form a valid ragged tensor. In particular, there is no validation that the values in the `splits` tensor generate a valid partitioning of the `values` tensor. Hence, the code is prone to heap buffer overflow. If `split_values` does not end with a value at least `num_values` then the `while` loop condition will trigger a read outside of the bounds of `split_values` once `batch_idx` grows too large. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00568,"percentile":0.47994,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"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-p5f8-gfw5-33w4","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":9.6},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["= 2.3.0"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-p5f8-gfw5-33w4","PYSEC-2020-124"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-p5f8-gfw5-33w4","PYSEC-2020-281"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-p5f8-gfw5-33w4","PYSEC-2020-316"],"provenance":"source"}],"summary":{"text":"The RaggedCountSparseOutput implementation in TensorFlow, prior to version 2.3.1, fails to validate that its inputs form a valid ragged tensor, so the splits tensor is not checked to produce a valid partitioning of the values tensor, which leads to a heap buffer overflow. An attacker able to supply crafted input to this operation over the network, with no authentication or user interaction required, could read outside the bounds of the split values array and potentially disclose or corrupt memory, though the attack is considered high complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:17Z"},"euvd":{"id":"EUVD-2020-0197","exploited":false,"provenance":"source"}}