CVE-2019-16778Google Tensorflow
Critical 9.8 No auth needed
Follow: this CVE · Google · Google Tensorflow We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 57
- Auth required
- No
- Published
- Dec 16, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Tensorflow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | tensorflow |
< 1.15.0 |
1.15.0 |
pip install "tensorflow>=1.15.0" |
| PyPI | tensorflow |
≥ 1.0.0 < 1.15.0 |
1.15.0 |
pip install "tensorflow>=1.15.0" |
| PyPI | tensorflow-cpu |
< 1.15.0 |
1.15.0 |
pip install "tensorflow-cpu>=1.15.0" |
| PyPI | tensorflow-cpu |
≥ 1.0.0 < 1.15.0 |
1.15.0 |
pip install "tensorflow-cpu>=1.15.0" |
| PyPI | tensorflow-gpu |
< 1.15.0 |
1.15.0 |
pip install "tensorflow-gpu>=1.15.0" |
| PyPI | tensorflow-gpu |
≥ 1.0.0 < 1.15.0 |
1.15.0 |
pip install "tensorflow-gpu>=1.15.0" |
Per OSV / GitHub Advisories (GHSA-844w-j86r-4x2j, PYSEC-2019-209, PYSEC-2019-227, PYSEC-2019-234). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tensorflow | ≥ 1.0.0 < 1.15.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Patch
- github.com Patch Third Party Advisory