{"id":"CVE-2020-15204","aliases":["CVE-2020-15204","GHSA-q8gv-q7wr-9jf8","BIT-TENSORFLOW-2020-15204","PYSEC-2020-127","PYSEC-2020-284","PYSEC-2020-319"],"related":[],"kind":"vulnerability","state":"published","title":"Segfault in Tensorflow","summary":"In eager mode, TensorFlow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 does not set the session state. Hence, calling `tf.raw_ops.GetSessionHandle` or `tf.raw_ops.GetSessionHandleV2` results in a null pointer dereference In linked snippet, in eager mode, `ctx->session_state()` returns `nullptr`. Since code immediately dereferences this, we get a segmentation fault. The issue is patched in commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1, 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 eager mode, TensorFlow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 does not set the session state. Hence, calling `tf.raw_ops.GetSessionHandle` or `tf.raw_ops.GetSessionHandleV2` results in a null pointer dereference In linked snippet, in eager mode, `ctx->session_state()` returns `nullptr`. Since code immediately dereferences this, we get a segmentation fault. The issue is patched in commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1, 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\nIn eager mode, TensorFlow does not set the session state. Hence, calling `tf.raw_ops.GetSessionHandle` or `tf.raw_ops.GetSessionHandleV2` results in a null pointer dereference:\nhttps://github.com/tensorflow/tensorflow/blob/0e68f4d3295eb0281a517c3662f6698992b7b2cf/tensorflow/core/kernels/session_ops.cc#L45\n\nIn the above snippet, in eager mode, `ctx->session_state()` returns `nullptr`. Since code immediately dereferences this, we get a segmentation fault.\n\n### Patches\nWe have patched the issue in 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1 and will release patch releases for all versions between 1.15 and 2.3.\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 modo eager, TensorFlow versiones anteriores a 1.15.4, 2.0.3, 2.1.2, 2.2.1 y 2.3.1 no establece el estado de la sesión.&#xa0;Por lo tanto, llamar a \"tf.raw_ops.GetSessionHandle\" o \"tf.raw_ops.GetSessionHandleV2\" resulta en una desreferencia del puntero null. En el fragmento vinculado, en modo eager, \"ctx-) session_state()\" devuelve \"nullptr\".&#xa0;Dado que el código elimina inmediatamente la referencia a esto, obtenemos un fallo de segmentación.&#xa0;El problema es parcheado en el commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1 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:41.000Z","modified":"2026-09-08T08:48:19.962Z","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:N/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-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":"9a133d73ae4b4664d22bd1aa6d654fec13c52ee1"},{"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":"9a133d73ae4b4664d22bd1aa6d654fec13c52ee1"},{"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":"9a133d73ae4b4664d22bd1aa6d654fec13c52ee1"},{"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/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/security/advisories/GHSA-q8gv-q7wr-9jf8","tags":["advisory","exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/commit/9a133d73ae4b4664d22bd1aa6d654fec13c52ee1","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-15204","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-284.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-319.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-127.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-15204","url":"https://www.cve.org/CVERecord?id=CVE-2020-15204","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.924Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q8gv-q7wr-9jf8","url":"https://github.com/advisories/GHSA-q8gv-q7wr-9jf8","licence":"CC-BY-4.0","modified":"2026-07-08T05:59:37.222Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15204","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15204","licence":"Public domain","modified":"2026-06-17T02:56:15.643Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-127","url":"https://osv.dev/vulnerability/PYSEC-2020-127","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:16.882Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-284","url":"https://osv.dev/vulnerability/PYSEC-2020-284","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:16.882Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-319","url":"https://osv.dev/vulnerability/PYSEC-2020-319","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:16.882Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TENSORFLOW-2020-15204","url":"https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15204","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.962Z"}],"updatedAt":"2026-11-25T22:57:54.953Z","epss":{"score":0.00903,"percentile":0.6083,"date":"2026-12-01T12:00:22.000Z"}}