CVE-2020-15190
MEDIUM 5.3CVSS 3.1Segfault in Tensorflow
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.
- Published
- 25 Sep 2020
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-476
- Also known as
- BIT-tensorflow-2020-15190GHSA-4g9f-63rx-5cw4PYSEC-2020-113PYSEC-2020-270PYSEC-2020-305
- Sources
- NVDJSONOSV GHSA-4g9f-63rx-5cw4JSONOSV PYSEC-2020-113JSONOSV PYSEC-2020-270JSONOSV PYSEC-2020-305JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
< 1.15.4 | 1.15.4 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.0.0, < 2.0.3 | 2.0.3 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.1.0, < 2.1.2 | 2.1.2 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.2.0, < 2.2.1 | 2.2.1 | |
| NVD | tensorflowcpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:* |
>= 2.3.0, < 2.3.1 | 2.3.1 | |
| NVD | opensuse | leapcpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:* |
= 15.2 | |
| OSV | PyPI | tensorflow | < 1.15.4 | 1.15.4 |
| OSV | PyPI | tensorflow | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | PyPI | tensorflow | >= 2.1.0, < 2.1.2 | 2.1.2 |
| OSV | PyPI | tensorflow | >= 2.2.0, < 2.2.1 | 2.2.1 |
| OSV | PyPI | tensorflow | >= 2.3.0, < 2.3.1 | 2.3.1 |
| OSV | PyPI | tensorflow-cpu | < 1.15.4 | 1.15.4 |
| OSV | PyPI | tensorflow-cpu | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | PyPI | tensorflow-cpu | >= 2.1.0, < 2.1.2 | 2.1.2 |
| OSV | PyPI | tensorflow-cpu | >= 2.2.0, < 2.2.1 | 2.2.1 |
| OSV | PyPI | tensorflow-cpu | >= 2.3.0, < 2.3.1 | 2.3.1 |
| OSV | PyPI | tensorflow-gpu | < 1.15.4 | 1.15.4 |
| OSV | PyPI | tensorflow-gpu | >= 2.0.0, < 2.0.3 | 2.0.3 |
| OSV | PyPI | tensorflow-gpu | >= 2.1.0, < 2.1.2 | 2.1.2 |
| OSV | PyPI | tensorflow-gpu | >= 2.2.0, < 2.2.1 | 2.2.1 |
| OSV | PyPI | tensorflow-gpu | >= 2.3.0, < 2.3.1 | 2.3.1 |
| OSV | PyPI | 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 | 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 |
| OSV | PyPI | tensorflow-cpu | < 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 | 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 |
| OSV | PyPI | tensorflow-gpu | < 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 | 1.15.4, 2.0.3, 2.1.2, 2.2.1, 2.3.1 |
References
- http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html · Mailing List, Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/commit/da8558533d925694483d2c136a9220d6d49d843c · Patch, Third Party Advisory, WEB, FIX
- https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1 · Third Party Advisory, WEB
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4g9f-63rx-5cw4 · Exploit, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-15190 · ADVISORY
- 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Sep 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 25 Sep 2020)