{"id":"CVE-2019-16778","published":"2019-12-16T20:15:14Z","modified":"2024-08-05T01:24:48Z","title":"Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"In TensorFlow before 1.15, a heap buffer overflow in UnsortedSegmentSum can be produced when the Index template argument is int32. In this case data_size and num_segments fields are truncated from int64 to int32 and can produce negative numbers, resulting in accessing out of bounds heap memory. This is unlikely to be exploitable and was detected and fixed internally in TensorFlow 1.15 and 2.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00788,"percentile":0.57101,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-844w-j86r-4x2j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/db4f9717c41bccc3ce10099ab61996b246099892","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2019-002.md","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":11.42},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":[">= < 1.15, < 1.15"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<1.15.0",">=1.0.0, <1.15.0"],"patched":["1.15.0"],"from":["GHSA-844w-j86r-4x2j","PYSEC-2019-209"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<1.15.0",">=1.0.0, <1.15.0"],"patched":["1.15.0"],"from":["GHSA-844w-j86r-4x2j","PYSEC-2019-227"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<1.15.0",">=1.0.0, <1.15.0"],"patched":["1.15.0"],"from":["GHSA-844w-j86r-4x2j","PYSEC-2019-234"],"provenance":"source"}],"summary":{"text":"A heap buffer overflow in the UnsortedSegmentSum operation of TensorFlow, a machine learning framework, occurs when the Index template argument is int32 and the data_size and num_segments fields are truncated from int64, which can yield negative values and out-of-bounds heap access. An attacker would need network access and low privileges, along with user interaction, and the flaw is described as unlikely to be exploitable with the possible effect being limited to availability impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:53Z"},"euvd":{"id":"EUVD-2019-0142","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-7577","published":"2019-04-24","fixed":"1.7.1","kev":false},{"cve":"CVE-2018-8825","published":"2019-04-23","fixed":"1.7.1","kev":false},{"cve":"CVE-2019-9635","published":"2019-04-24","fixed":"1.12.2","kev":false,"link":{"from":"CVE-2019-9635","to":"CVE-2019-16778","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tensorflow","fromFixed":"1.12.2","toFixed":"1.15.0","daysApart":236},{"kind":"version-step","provenance":"source","package":"PyPI:tensorflow-cpu","fromFixed":"1.12.2","toFixed":"1.15.0","daysApart":236}]}},{"cve":"CVE-2019-16778","published":"2019-12-16","fixed":"1.15.0","kev":false},{"cve":"CVE-2020-5215","published":"2020-01-28","fixed":"2.0.1","kev":false,"link":{"from":"CVE-2019-16778","to":"CVE-2020-5215","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tensorflow","fromFixed":"1.15.0","toFixed":"1.15.2","daysApart":43},{"kind":"version-step","provenance":"source","package":"PyPI:tensorflow-cpu","fromFixed":"1.15.0","toFixed":"1.15.2","daysApart":43}]}},{"cve":"CVE-2020-15190","published":"2020-09-25","fixed":"2.3.1","kev":false},{"cve":"CVE-2020-15191","published":"2020-09-25","fixed":"2.3.1","kev":false}],"package":"PyPI:tensorflow"}}