VDB
Sign up
HIGH7.8

PYSEC-2020-333

Quick fix

PYSEC-2020-333 — tensorflow-gpu: upgrade to the fixed version with the command below.

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

Details

In affected versions of TensorFlow the tf.raw_ops.DataFormatVecPermute API does not validate the src_format and dst_format attributes. The code assumes that these two arguments define a permutation of NHWC. This can result in uninitialized memory accesses, read outside of bounds and even crashes. 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-gpu
Introduced in: 0Fixed in: ebc70b7a592420d3d2f359e4b1694c236b82c7ae
Fixpip install --upgrade 'tensorflow-gpu>=ebc70b7a592420d3d2f359e4b1694c236b82c7ae'

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