{"id":"CVE-2020-15196","published":"2020-09-25T18:40:36Z","modified":"2024-08-04T13:08:22Z","title":"Heap buffer overflow in Tensorflow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In Tensorflow version 2.3.0, the `SparseCountSparseOutput` and `RaggedCountSparseOutput` implementations don't validate that the `weights` tensor has the same shape as the data. The check exists for `DenseCountSparseOutput`, where both tensors are fully specified. In the sparse and ragged count weights are still accessed in parallel with the data. But, since there is no validation, a user passing fewer weights than the values for the tensors can generate a read from outside the bounds of the heap buffer allocated for the weights. The issue is patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and is released in TensorFlow version 2.3.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00911,"percentile":0.60856,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"},{"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-pg59-2f92-5cph","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":12.17},{"name":"CVSS severity","points":5.95}]},"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-pg59-2f92-5cph","PYSEC-2020-119"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-pg59-2f92-5cph","PYSEC-2020-276"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":[">=2.3.0, <2.3.1","<2.3.1"],"patched":["2.3.1"],"from":["GHSA-pg59-2f92-5cph","PYSEC-2020-311"],"provenance":"source"}],"summary":{"text":"The TensorFlow library's SparseCountSparseOutput and RaggedCountSparseOutput implementations fail to validate that the weights tensor matches the shape of the data, causing out-of-bounds heap reads when fewer weights than values are supplied. An attacker who can supply crafted weights tensors to these operations, with low privileges and network reachability to the affected service, can trigger reads outside the bounds of a heap buffer, with the attack complexity noted as high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:50Z"},"euvd":{"id":"EUVD-2020-0192","exploited":false,"provenance":"source"}}