VDB
Sign up
HIGH7.5

PYSEC-2020-300

Quick fix

PYSEC-2020-300 — tensorflow-cpu: upgrade to the fixed version with the command below.

pip install --upgrade 'tensorflow-cpu>=8b5b9dc96666a3a5d27fad7179ff215e3b74b67c'

Details

In TensorFlow release candidate versions 2.4.0rc*, the general implementation for matching filesystem paths to globbing pattern is vulnerable to an access out of bounds of the array holding the directories. There are multiple invariants and preconditions that are assumed by the parallel implementation of GetMatchingPaths but are not verified by the PRs introducing it (#40861 and #44310). Thus, we are completely rewriting the implementation to fully specify and validate these. This is patched in version 2.4.0. This issue only impacts master branch and the release candidates for TF version 2.4. The final release of the 2.4 release will be patched.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/tensorflow-cpu
Introduced in: 0Fixed in: 8b5b9dc96666a3a5d27fad7179ff215e3b74b67c
Fixpip install --upgrade 'tensorflow-cpu>=8b5b9dc96666a3a5d27fad7179ff215e3b74b67c'

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