{"id":"CVE-2020-15200","published":"2020-09-25T18:40:15Z","modified":"2024-08-04T13:08:22Z","title":"Segfault 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. Thus, the code sets up conditions to cause a heap buffer overflow. A `BatchedMap` is equivalent to a vector where each element is a hashmap. However, if the first element of `splits_values` is not 0, `batch_idx` will never be 1, hence there will be no hashmap at index 0 in `per_batch_counts`. Trying to access that in the user code results in a segmentation fault. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00851,"percentile":0.59103,"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/security/advisories/GHSA-x7rp-74x2-mjf3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/3cbb917b4714766030b28eba9fb41bb97ce9ee02","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":11.82},{"name":"CVSS severity","points":4.13}]},"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-x7rp-74x2-mjf3","PYSEC-2020-123"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-x7rp-74x2-mjf3","PYSEC-2020-280"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-x7rp-74x2-mjf3","PYSEC-2020-315"],"provenance":"source"}],"summary":{"text":"The flaw is an input validation gap in TensorFlow's RaggedCountSparseOutput implementation, which fails to check that the splits tensor forms a valid partitioning of the values tensor, leading to a heap buffer overflow and segmentation fault. An attacker who can supply crafted ragged tensor inputs, such as a splits value whose first element is not 0, can trigger the crash (denial of service) over the network with high attack complexity, requiring no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:27Z"},"euvd":{"id":"EUVD-2020-0196","exploited":false,"provenance":"source"}}