CVE-2019-16778
CRITICAL 9.8CVSS 3.1Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow
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.
- Published
- 16 Dec 2019
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-122CWE-681
- Also known as
- GHSA-844w-j86r-4x2jPYSEC-2019-209PYSEC-2019-227PYSEC-2019-234
- Sources
- NVDJSONOSV GHSA-844w-j86r-4x2jJSONOSV PYSEC-2019-209JSONOSV PYSEC-2019-227JSONOSV PYSEC-2019-234JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | LOW 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:* |
>= 1.0.0, < 1.15.0 | 1.15.0 | |
| OSV | PyPI | tensorflow | < 1.15.0 | 1.15.0 |
| OSV | PyPI | tensorflow-cpu | < 1.15.0 | 1.15.0 |
| OSV | PyPI | tensorflow-gpu | < 1.15.0 | 1.15.0 |
| OSV | PyPI | tensorflow | >= 1.0.0, < 1.15.0 | 1.15.0 |
| OSV | PyPI | tensorflow-cpu | >= 1.0.0, < 1.15.0 | 1.15.0 |
| OSV | PyPI | tensorflow-gpu | >= 1.0.0, < 1.15.0 | 1.15.0 |
References
- https://github.com/tensorflow/tensorflow/blob/master/tensorflow/security/advisory/tfsa-2019-002.md · Third Party Advisory, WEB, ADVISORY
- https://github.com/tensorflow/tensorflow/commit/db4f9717c41bccc3ce10099ab61996b246099892 · Patch, WEB, FIX
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-844w-j86r-4x2j · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2019-16778 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2019-227.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2019-234.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2019-209.yaml · WEB
- https://github.com/tensorflow/tensorflow · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 16 Dec 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Dec 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Dec 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Dec 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Dec 2019)