{"id":"CVE-2020-15190","aliases":["CVE-2020-15190","GHSA-4g9f-63rx-5cw4","BIT-TENSORFLOW-2020-15190","PYSEC-2020-113","PYSEC-2020-270","PYSEC-2020-305"],"related":[],"kind":"vulnerability","state":"published","title":"Segfault in Tensorflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe [`tf.raw_ops.Switch`](https://www.tensorflow.org/api_docs/python/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.\n\nHowever, the eager runtime traverses all tensors in the output:\nhttps://github.com/tensorflow/tensorflow/blob/0e68f4d3295eb0281a517c3662f6698992b7b2cf/tensorflow/core/common_runtime/eager/kernel_and_device.cc#L308-L313\n\nSince 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\n\n### Patches\nWe have patched the issue in da8558533d925694483d2c136a9220d6d49d843c and will release a patch release for all affected versions.\n\nWe recommend users to upgrade to TensorFlow 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.\n\n### For more information\nPlease consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions.\n\n### Attribution\nThis vulnerability has been reported by members of the Aivul Team from Qihoo 360.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Tensorflow anteriores a las versiones 1.15.4, 2.0.3, 2.1.2, 2.2.1 y 2.3.1, la operación \"tf.raw_ops.Switch\" toma como entrada un tensor y un booleano y genera dos tensores.&#xa0;Dependiendo del valor booleano, uno de los tensores es exactamente el tensor de entrada mientras que el otro debería ser un tensor vacío.&#xa0;Sin embargo, el tiempo de ejecución de eager salta todos los tensores en la salida.&#xa0;Dado que solo se define uno de los tensores, el otro es \"nullptr\", por lo que vinculamos una referencia a \"nullptr\".&#xa0;Este es un comportamiento indefinido y se reporta como un error si se compila con \"-fsanitize=null\".&#xa0;En este caso, esto resulta en un fallo de segmentación. El problema es parcheado en el commit da8558533d925694483d2c136a9220d6d49d843c, y es publicado en TensorFlow versiones 1.15.4, 2.0.3, 2.1.2, 2.2.1 o 2.3.1","source":"nvd"}],"published":"2020-09-25T18:28:14.000Z","modified":"2026-09-08T08:48:10.784Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-20","CWE-476"],"affected":[{"ranges":[{"version":"< 1.15.4","status":"affected"},{"version":">= 2.0.0, < 2.0.3","status":"affected"},{"version":">= 2.1.0, < 2.1.2","status":"affected"},{"version":">= 2.2.0, < 2.2.1","status":"affected"},{"version":">= 2.3.0, < 2.3.1","status":"affected"}],"vendor":"tensorflow","product":"tensorflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.4"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.4"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.4"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.15.4"},{"status":"affected","introduced":"2.0.0","fixed":"2.0.3"},{"status":"affected","introduced":"2.1.0","fixed":"2.1.2"},{"status":"affected","introduced":"2.2.0","fixed":"2.2.1"},{"status":"affected","introduced":"2.3.0","fixed":"2.3.1"}],"vendor":"google","product":"tensorflow","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.2"}],"vendor":"opensuse","product":"leap","cpe":"cpe:2.3:o:opensuse:leap:15.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"da8558533d925694483d2c136a9220d6d49d843c"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.4"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"},{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"},{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"da8558533d925694483d2c136a9220d6d49d843c"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.4"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"},{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"},{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"da8558533d925694483d2c136a9220d6d49d843c"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.15.4"},{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.0.3"},{"type":"ecosystem","introduced":"2.1.0","status":"affected","fixed":"2.1.2"},{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.2.1"},{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","repo":"https://github.com/tensorflow/tensorflow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.15.4"},{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.3"},{"type":"semver","introduced":"2.1.0","status":"affected","fixed":"2.1.2"},{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.1"},{"type":"semver","introduced":"2.3.0","status":"affected","fixed":"2.3.1"}],"ecosystem":"Bitnami","package":"tensorflow","purl":"pkg:bitnami/tensorflow","source":"bitnami"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-4g9f-63rx-5cw4","tags":["advisory","exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/commit/da8558533d925694483d2c136a9220d6d49d843c","tags":["advisory","fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15190","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-270.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-305.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-113.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tensorflow/tensorflow","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15190","url":"https://www.cve.org/CVERecord?id=CVE-2020-15190","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.683Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4g9f-63rx-5cw4","url":"https://github.com/advisories/GHSA-4g9f-63rx-5cw4","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:22.966Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15190","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15190","licence":"Public domain","modified":"2026-06-17T02:56:13.777Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-113","url":"https://osv.dev/vulnerability/PYSEC-2020-113","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:16.028Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-270","url":"https://osv.dev/vulnerability/PYSEC-2020-270","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:16.028Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-305","url":"https://osv.dev/vulnerability/PYSEC-2020-305","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:16.028Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TENSORFLOW-2020-15190","url":"https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15190","licence":"Apache-2.0","modified":"2026-09-08T08:48:10.784Z"}],"updatedAt":"2026-11-25T22:57:54.942Z","epss":{"score":0.00943,"percentile":0.62048,"date":"2026-12-01T12:00:22.000Z"}}