# CVE-2020-15190: Segfault in Tensorflow

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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.94%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-09-25T18:28:14.000Z
- Modified: 2026-09-08T08:48:10.784Z
- Also known as: GHSA-4g9f-63rx-5cw4, BIT-TENSORFLOW-2020-15190, PYSEC-2020-113, PYSEC-2020-270, PYSEC-2020-305
- Weaknesses: CWE-20, CWE-476
- Assigned by: GitHub_M

## Description

In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `tf.raw_ops.Switch` operation takes as input a tensor and a boolean and outputs two tensors. Depending on the boolean value, one of the tensors is exactly the input tensor whereas the other one should be an empty tensor. However, the eager runtime traverses all tensors in the output. Since only one of the tensors is defined, the other one is `nullptr`, hence we are binding a reference to `nullptr`. This is undefined behavior and reported as an error if compiling with `-fsanitize=null`. In this case, this results in a segmentation fault The issue is patched in commit da8558533d925694483d2c136a9220d6d49d843c, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.

(As written by CVE List.)

## Affected

- tensorflow tensorflow: < 1.15.4; >= 2.0.0, < 2.0.3; >= 2.1.0, < 2.1.2; >= 2.2.0, < 2.2.1; >= 2.3.0, < 2.3.1
- tensorflow (PyPI): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before da8558533d925694483d2c136a9220d6d49d843c
- tensorflow-cpu (PyPI): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before da8558533d925694483d2c136a9220d6d49d843c
- tensorflow-gpu (PyPI): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1; before da8558533d925694483d2c136a9220d6d49d843c
- google tensorflow: before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1
- opensuse leap: 15.2
- tensorflow (Bitnami): before 1.15.4; from 2.0.0 before 2.0.3; from 2.1.0 before 2.1.2; from 2.2.0 before 2.2.1; from 2.3.0 before 2.3.1

## Every score

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

## References

- <https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4g9f-63rx-5cw4> (exploit, advisory, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1> (advisory, third-party-advisory, web)
- <https://github.com/tensorflow/tensorflow/commit/da8558533d925694483d2c136a9220d6d49d843c> (advisory, fix, patch, third-party-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15190> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-270.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-305.yaml> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-113.yaml> (web)
- <https://github.com/tensorflow/tensorflow> (package)

## Sources

- CVE List: [CVE-2020-15190](https://www.cve.org/CVERecord?id=CVE-2020-15190), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4g9f-63rx-5cw4](https://github.com/advisories/GHSA-4g9f-63rx-5cw4), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15190](https://nvd.nist.gov/vuln/detail/CVE-2020-15190), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-113](https://osv.dev/vulnerability/PYSEC-2020-113), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-270](https://osv.dev/vulnerability/PYSEC-2020-270), CC-BY-4.0, modified 2023-12-06
- PyPA Advisory Database: [PYSEC-2020-305](https://osv.dev/vulnerability/PYSEC-2020-305), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-TENSORFLOW-2020-15190](https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15190), Apache-2.0, modified 2026-09-08

---

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