Heap buffer overflow in `UnsortedSegmentSum` in TensorFlow
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-122 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| tensorflow | < 1.15 to before 1.15 | 1.15 | Patch available | CNA | |
| — | tensorflow (PyPI) | before 1.15.0 | 1.15.0 | Patch available | GHSA-844w-j86r-4x2j |
| — | tensorflow-cpu (PyPI) | before 1.15.0 | 1.15.0 | Patch available | GHSA-844w-j86r-4x2j |
| — | tensorflow-gpu (PyPI) | before 1.15.0 | 1.15.0 | Patch available | GHSA-844w-j86r-4x2j |
- tensorflow VendorGoogle Affected < 1.15 to before 1.15 Fixed in 1.15 Patch available CNA
- tensorflow (PyPI) Vendor— Affected before 1.15.0 Fixed in 1.15.0 Patch available GHSA-844w-j86r-4x2j
- tensorflow-cpu (PyPI) Vendor— Affected before 1.15.0 Fixed in 1.15.0 Patch available GHSA-844w-j86r-4x2j
- tensorflow-gpu (PyPI) Vendor— Affected before 1.15.0 Fixed in 1.15.0 Patch available GHSA-844w-j86r-4x2j
Remediation
- Fix · CNA tensorflow (tensorflow) Fixed in 1.15
- Fix · GHSA-844w-j86r-4x2j tensorflow (PyPI) Fixed in 1.15.0 Advisory →
- Fix · GHSA-844w-j86r-4x2j tensorflow-cpu (PyPI) Fixed in 1.15.0 Advisory →
- Fix · GHSA-844w-j86r-4x2j tensorflow-gpu (PyPI) Fixed in 1.15.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2019-16778
- 2026-10-03 Alias added: GHSA-844w-j86r-4x2j
References
Patch 2
Advisory 2
Other 4
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2019-227.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2019-234.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2019-209.yaml
- https://github.com/tensorflow/tensorflow
More Google Tensorflow vulnerabilities
- TI-2022-20241 FractionalMaxPool and FractionalAVGPool heap out-of-bounds acess in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07640 Integer overflow in Tensorflow CVSS 3.1CRITICAL 9.8
- TI-2022-07627 Out of bounds read and write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07619 Out of bounds write in Tensorflow CVSS 3.1HIGH 8.8
- TI-2022-07613 Read and Write outside of bounds in TFLite CVSS 3.1HIGH 8.8
- TI-2022-07612 Integer overflow in TFLite CVSS 3.1HIGH 8.8
Sources
- CVE-2019-16778 · CVE Program
- CVE-2019-16778 · NVD
- FIRST EPSS
- GHSA-844w-j86r-4x2j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences