CRITICAL9.8
PYSEC-2019-227
Quick fix
PYSEC-2019-227 — tensorflow-cpu: upgrade to the fixed version with the command below.
pip install --upgrade 'tensorflow-cpu>=db4f9717c41bccc3ce10099ab61996b246099892'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/tensorflow-cpu
Introduced in:
0Fixed in: db4f9717c41bccc3ce10099ab61996b246099892Fix
pip install --upgrade 'tensorflow-cpu>=db4f9717c41bccc3ce10099ab61996b246099892'References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/tensorflow-cpu"]}'