National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2020-5215 Detail

Current Description

In TensorFlow before 1.15.2 and 2.0.1, converting a string (from Python) to a tf.float16 value results in a segmentation fault in eager mode as the format checks for this use case are only in the graph mode. This issue can lead to denial of service in inference/training where a malicious attacker can send a data point which contains a string instead of a tf.float16 value. Similar effects can be obtained by manipulating saved models and checkpoints whereby replacing a scalar tf.float16 value with a scalar string will trigger this issue due to automatic conversions. This can be easily reproduced by tf.constant("hello", tf.float16), if eager execution is enabled. This issue is patched in TensorFlow 1.15.1 and 2.0.1 with this vulnerability patched. TensorFlow 2.1.0 was released after we fixed the issue, thus it is not affected. Users are encouraged to switch to TensorFlow 1.15.1, 2.0.1 or 2.1.0.

Source:  MITRE
View Analysis Description

Severity



CVSS 3.x Severity and Metrics:

NIST CVSS score
NIST: NVD
Base Score: 7.5 HIGH
Vector:  CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Nist CVSS score does not match with CNA score
CNA:  GitHub, Inc.
Base Score: 5.0 MEDIUM
Vector:  CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://github.com/tensorflow/tensorflow/commit/5ac1b9e24ff6afc465756edf845d2e9660bd34bf Patch
https://github.com/tensorflow/tensorflow/releases/tag/v1.15.2 Release Notes
https://github.com/tensorflow/tensorflow/releases/tag/v2.0.1 Release Notes
https://github.com/tensorflow/tensorflow/security/advisories/GHSA-977j-xj7q-2jr9 Exploit Patch Third Party Advisory

Weakness Enumeration

CWE-ID CWE Name Source
CWE-20 Improper Input Validation NIST  
CWE-754 Improper Check for Unusual or Exceptional Conditions GitHub, Inc.  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
Up to (excluding)
1.15.2
 cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
     Show Matching CPE(s)
From (including)
2.0.0
Up to (excluding)
2.0.1


Change History

1 change record found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2020-5215
NVD Published Date:
01/28/2020
NVD Last Modified:
02/05/2020