Improper Input Validation Affecting tensorflow-cpu package, versions [,2.4.0rc0)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-TENSORFLOWCPU-1050395
  • published11 Dec 2020
  • disclosed10 Dec 2020
  • creditAivul Team from Qihoo 360

Introduced: 10 Dec 2020

CVE-2020-26268  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade tensorflow-cpu to version 2.4.0rc0 or higher.

Overview

tensorflow-cpu is a machine learning framework.

Affected versions of this package are vulnerable to Improper Input Validation. The tf.raw_ops.ImmutableConst operation returns a constant tensor created from a memory mapped file which is assumed immutable. However, if the type of the tensor is not an integral type, the operation crashes the Python interpreter as it tries to write to the memory area: If the file is too small, TensorFlow properly returns an error as the memory area has fewer bytes than what is needed for the tensor it creates. However, as soon as there are enough bytes, the above snippet causes a segmentation fault.

References

CVSS Scores

version 3.1