HIGH8.8
PYSEC-2022-71
Quick fix
PYSEC-2022-71 — tensorflow-cpu: upgrade to the fixed version with the command below.
pip install --upgrade 'tensorflow-cpu>=f0147751fd5d2ff23251149ebad9af9f03010732'Details
Tensorflow is an Open Source Machine Learning Framework. The implementation of `Range` suffers from integer overflows. These can trigger undefined behavior or, in some scenarios, extremely large allocations. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/tensorflow-cpu
Introduced in:
0Fixed in: f0147751fd5d2ff23251149ebad9af9f03010732Fix
pip install --upgrade 'tensorflow-cpu>=f0147751fd5d2ff23251149ebad9af9f03010732'References
- https://github.com/tensorflow/tensorflow/commit/f0147751fd5d2ff23251149ebad9af9f03010732[FIX]
- https://github.com/tensorflow/tensorflow/pull/51733[WEB]
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-qx3f-p745-w4hr[ADVISORY]
- https://github.com/tensorflow/tensorflow/issues/52676[REPORT]
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"]}'