Heap-based Buffer Overflow Affecting tensorflow-gpu package, versions [2.3.0, 2.3.1)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.25% (66th 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 IDSNYK-PYTHON-TENSORFLOWGPU-1013611
  • published29 Sept 2020
  • disclosed28 Sept 2020
  • creditUnknown

Introduced: 28 Sep 2020

CVE-2020-15196  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade tensorflow-gpu to version 2.3.1 or higher.

Overview

tensorflow-gpu is a machine learning framework.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow. The SparseCountSparseOutput and RaggedCountSparseOutput implementations don't validate that the weights tensor has the same shape as the data. The check exists for DenseCountSparseOutput, where both tensors are fully specified.In the sparse and ragged count weights are still accessed in parallel with the data.But, since there is no validation, a user passing fewer weights than the values for the tensors can generate a read from outside the bounds of the heap buffer allocated for the weights.

CVSS Scores

version 3.1