HIGH8.1
PYSEC-2022-156
Quick fix
PYSEC-2022-156 — tensorflow-gpu: upgrade to the fixed version with the command below.
pip install --upgrade 'tensorflow-gpu>=c99d98cd189839dcf51aee94e7437b54b31f8abd'Details
Tensorflow is an Open Source Machine Learning Framework. TensorFlow's type inference can cause a heap out of bounds read as the bounds checking is done in a `DCHECK` (which is a no-op during production). An attacker can control the `input_idx` variable such that `ix` would be larger than the number of values in `node_t.args`. The fix will be included in TensorFlow 2.8.0. This is the only affected version.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/tensorflow-gpu
Introduced in:
0Fixed in: c99d98cd189839dcf51aee94e7437b54b31f8abdFix
pip install --upgrade 'tensorflow-gpu>=c99d98cd189839dcf51aee94e7437b54b31f8abd'References
- https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/core/graph/graph.cc#L223-L229[WEB]
- https://github.com/tensorflow/tensorflow/commit/c99d98cd189839dcf51aee94e7437b54b31f8abd[FIX]
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-vq36-27g6-p492[ADVISORY]
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-gpu"]}'