CVE-2020-15208
September 25, 2020
In tensorflow-lite before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, when determining the common dimension size of two tensors, TFLite uses a "DCHECK" which is no-op outside of debug compilation modes. Since the function always returns the dimension of the first tensor, malicious attackers can craft cases where this is larger than that of the second tensor. In turn, this would result in reads/writes outside of bounds since the interpreter will wrongly assume that there is enough data in both tensors. The issue is patched in commit 8ee24e7949a203d234489f9da2c5bf45a7d5157d, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
Affected Packages
tensorflow (PYTHON):
Affected version(s) >=2.0.0 <2.0.3Fix Suggestion:
Update to version 2.0.3tensorflow (PYTHON):
Affected version(s) >=0.11.0rc2 <1.15.4Fix Suggestion:
Update to version 1.15.4tensorflow-cpu (PYTHON):
Affected version(s) >=2.1.0 <2.1.2Fix Suggestion:
Update to version 2.1.2tensorflow-gpu (PYTHON):
Affected version(s) >=0.12.0rc0 <1.15.4Fix Suggestion:
Update to version 1.15.4tensorflow (PYTHON):
Affected version(s) =2.3.0 <2.3.1Fix Suggestion:
Update to version 2.3.1tensorflow (PYTHON):
Affected version(s) =2.2.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tensorflow-gpu (PYTHON):
Affected version(s) >=2.1.0 <2.1.2Fix Suggestion:
Update to version 2.1.2tensorflow-cpu (PYTHON):
Affected version(s) =2.3.0 <2.3.1Fix Suggestion:
Update to version 2.3.1tensorflow-gpu (PYTHON):
Affected version(s) =2.2.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tensorflow-cpu (PYTHON):
Affected version(s) =2.2.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tensorflow (PYTHON):
Affected version(s) >=2.1.0 <2.1.2Fix Suggestion:
Update to version 2.1.2tensorflow-gpu (PYTHON):
Affected version(s) =2.3.0 <2.3.1Fix Suggestion:
Update to version 2.3.1tensorflow-gpu (PYTHON):
Affected version(s) >=2.0.0 <2.0.3Fix Suggestion:
Update to version 2.0.3Additional Notes
The description of this vulnerability differs from MITRE.
Related ResourcesĀ (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.4
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
CVSS v2
Base Score:
7.5
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
EPSS
Base Score:
0.33