Integer Overflow or Wraparound Affecting tensorflow-cpu package, versions [,2.5.3) [2.6.0,2.6.3) [2.7.0,2.7.1)
Threat Intelligence
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 ID SNYK-PYTHON-TENSORFLOWCPU-2395452
- published 7 Feb 2022
- disclosed 7 Feb 2022
- credit Wang Xuan of Qihoo 360 AIVul Team
Introduced: 7 Feb 2022
CVE-2022-23558 Open this link in a new tabHow to fix?
Upgrade tensorflow-cpu
to version 2.5.3, 2.6.3, 2.7.1 or higher.
Overview
tensorflow-cpu is a machine learning framework.
Affected versions of this package are vulnerable to Integer Overflow or Wraparound via a maliciously crafted TFLite model that would cause an integer overflow in the TfLiteIntArrayCreate
function. The TfLiteIntArrayGetSizeInBytes
function, which is called from TfLiteIntArrayCreate
, returns an int
instead of a size_t
. The user controlled variable computed_size
(a variable inside the TfLiteIntArrayGetSizeInBytes
function) can overflow the size of the int
datatype.