MEDIUM5.3
PYSEC-2020-297
Quick fix
PYSEC-2020-297 — tensorflow-cpu: upgrade to the fixed version with the command below.
pip install --upgrade 'tensorflow-cpu>=ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2'Details
In affected versions of TensorFlow under certain cases a saved model can trigger use of uninitialized values during code execution. This is caused by having tensor buffers be filled with the default value of the type but forgetting to default initialize the quantized floating point types in Eigen. This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/tensorflow-cpu
Introduced in:
0Fixed in: ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2Fix
pip install --upgrade 'tensorflow-cpu>=ace0c15a22f7f054abcc1f53eabbcb0a1239a9e2'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"]}'