{"cve":"CVE-2019-16778","nvd":{"published":"2019-12-16T21:15:11.403","modified":"2026-06-17T02:22:47.090","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-681","CWE-122"],"references":["https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2019-002.md","https://github.com/tensorflow/tensorflow/commit/db4f9717c41bccc3ce10099ab61996b246099892","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-844w-j86r-4x2j","https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2019-002.md","https://github.com/tensorflow/tensorflow/commit/db4f9717c41bccc3ce10099ab61996b246099892"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T20:59:27.069234358+00:00"},"epss":{"cve":"CVE-2019-16778","score":0.00788,"percentile":0.562,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-844w-j86r-4x2j","url":"https://osv.dev/vulnerability/GHSA-844w-j86r-4x2j","summary":"Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow","modified":"2026-07-08T06:00:58.351181091Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<1.15.0"],"fixed":["1.15.0"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<1.15.0"],"fixed":["1.15.0"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<1.15.0"],"fixed":["1.15.0"]}]},{"id":"PYSEC-2019-209","url":"https://osv.dev/vulnerability/PYSEC-2019-209","summary":"","modified":"2023-11-08T04:01:21.393349Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=1.0.0 <1.15.0"],"fixed":["1.15.0"]}]},{"id":"PYSEC-2019-227","url":"https://osv.dev/vulnerability/PYSEC-2019-227","summary":"","modified":"2023-11-08T04:01:21.393349Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=1.0.0 <1.15.0"],"fixed":["1.15.0"]}]},{"id":"PYSEC-2019-234","url":"https://osv.dev/vulnerability/PYSEC-2019-234","summary":"","modified":"2023-11-08T04:01:21.393349Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=1.0.0 <1.15.0"],"fixed":["1.15.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}