VDB
Sign up
HIGH7.1

PYSEC-2021-686

Quick fix

PYSEC-2021-686 — tensorflow-gpu: upgrade to the fixed version with the command below.

pip install --upgrade 'tensorflow-gpu>=a84358aa12f0b1518e606095ab9cfddbf597c121'

Details

TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a heap buffer overflow in `tf.raw_ops.RaggedTensorToTensor`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/d94227d43aa125ad8b54115c03cece54f6a1977b/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L219-L222) uses the same index to access two arrays in parallel. Since the user controls the shape of the input arguments, an attacker could trigger a heap OOB access when `parent_output_index` is shorter than `row_split`. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, 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-gpu
Introduced in: 0Fixed in: a84358aa12f0b1518e606095ab9cfddbf597c121
Fixpip install --upgrade 'tensorflow-gpu>=a84358aa12f0b1518e606095ab9cfddbf597c121'

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-gpu"]}'