Vulnerabilities / CVE-2019-16778

critical

CVE-2019-16778

Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow

Published Modified CWE 122, 681
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA2.1CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (low).

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory piptensorflow, tensorflow-cpu, tensorflow-gpu1.15.0
Show all 3 entries from 1 source
SourcePackageFixed in
pip::GitHub Security Advisory piptensorflow1.15.0
pip::GitHub Security Advisory piptensorflow-cpu1.15.0
pip::GitHub Security Advisory piptensorflow-gpu1.15.0

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.