# CVE-2020-5215: Segmentation faultin TensorFlow when converting a Python string to tf.float16

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-01-28T21:20:15.000Z
- Modified: 2026-09-10T03:48:42.393Z
- Also known as: GHSA-977j-xj7q-2jr9, BIT-TENSORFLOW-2020-5215, PYSEC-2020-258, PYSEC-2020-303, PYSEC-2020-338
- Weaknesses: CWE-20, CWE-754
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- TensorFlow TensorFlow: < 1.15.2; = 2.0.0
- tensorflow (PyPI): before 1.15.2; from 2.0.0 before 2.0.1; before 5ac1b9e24ff6afc465756edf845d2e9660bd34bf
- tensorflow-cpu (PyPI): before 1.15.2; from 2.0.0 before 2.0.1; before 5ac1b9e24ff6afc465756edf845d2e9660bd34bf
- tensorflow-gpu (PyPI): before 1.15.2; from 2.0.0 before 2.0.1; before 5ac1b9e24ff6afc465756edf845d2e9660bd34bf
- google tensorflow: before 1.15.2; from 2.0.0 before 2.0.1
- tensorflow (Bitnami): before 1.15.2; from 2.0.0 before 2.0.1

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-977j-xj7q-2jr9> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/5ac1b9e24ff6afc465756edf845d2e9660bd34bf> (fix, patch, web)
- <https://github.com/tensorflow/tensorflow/releases/tag/v1.15.2> (article, release-notes, web)
- <https://github.com/tensorflow/tensorflow/releases/tag/v2.0.1> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5215> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-303.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-338.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-258.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-5215](https://www.cve.org/CVERecord?id=CVE-2020-5215), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-977j-xj7q-2jr9](https://github.com/advisories/GHSA-977j-xj7q-2jr9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5215](https://nvd.nist.gov/vuln/detail/CVE-2020-5215), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-258](https://osv.dev/vulnerability/PYSEC-2020-258), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-303](https://osv.dev/vulnerability/PYSEC-2020-303), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-338](https://osv.dev/vulnerability/PYSEC-2020-338), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-5215](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-5215), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-5215 · Whole record: https://cve.day/CVE-2020-5215.json · Rebuilt by cve.day 2026-11-25T22:57:50.706Z
