{"id":"CVE-2020-5215","published":"2020-01-28T21:20:15Z","modified":"2024-08-04T08:22:09Z","title":"Segmentation faultin TensorFlow when converting a Python string to tf.float16","vendor":"TensorFlow","product":"TensorFlow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00588,"percentile":0.49045,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-977j-xj7q-2jr9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/5ac1b9e24ff6afc465756edf845d2e9660bd34bf","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v1.15.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":9.81},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"TensorFlow","product":"TensorFlow","versions":["< 1.15.2","= 2.0.0"]}],"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<1.15.2",">=2.0.0, <2.0.1"],"patched":["1.15.2","2.0.1"],"from":["GHSA-977j-xj7q-2jr9","PYSEC-2020-258"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<1.15.2",">=2.0.0, <2.0.1"],"patched":["1.15.2","2.0.1"],"from":["GHSA-977j-xj7q-2jr9","PYSEC-2020-303"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<1.15.2",">=2.0.0, <2.0.1"],"patched":["1.15.2","2.0.1"],"from":["GHSA-977j-xj7q-2jr9","PYSEC-2020-338"],"provenance":"source"}],"summary":{"text":"The flaw is a segmentation fault in TensorFlow's eager-mode conversion of a Python string to a tf.float16 value, because the format checks for this case exist only in graph mode; it affects TensorFlow before 1.15.2 and 2.0.1. An attacker who can supply a string in place of a float16 value, whether in an input data point or in a manipulated saved model or checkpoint, can crash the process and cause denial of service during inference or training, with exploitation requiring local access, low privileges, and user interaction, and eager execution being enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:47Z"},"euvd":{"id":"EUVD-2020-0219","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-8825","published":"2019-04-23","fixed":"1.7.1","kev":false},{"cve":"CVE-2019-9635","published":"2019-04-24","fixed":"1.12.2","kev":false},{"cve":"CVE-2019-16778","published":"2019-12-16","fixed":"1.15.0","kev":false,"link":{"from":"CVE-2019-16778","to":"CVE-2020-5215","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:tensorflow","fromFixed":"1.15.0","toFixed":"1.15.2","daysApart":43},{"kind":"version-step","provenance":"source","package":"PyPI:tensorflow-cpu","fromFixed":"1.15.0","toFixed":"1.15.2","daysApart":43}]}},{"cve":"CVE-2020-5215","published":"2020-01-28","fixed":"2.0.1","kev":false},{"cve":"CVE-2020-15190","published":"2020-09-25","fixed":"2.3.1","kev":false},{"cve":"CVE-2020-15191","published":"2020-09-25","fixed":"2.3.1","kev":false},{"cve":"CVE-2020-15192","published":"2020-09-25","fixed":"2.3.1","kev":false}],"package":"PyPI:tensorflow"}}