{"id":"CVE-2020-15266","aliases":["CVE-2020-15266","GHSA-xwhf-g6j5-j5gc","BIT-TENSORFLOW-2020-15266","PYSEC-2020-139","PYSEC-2020-296","PYSEC-2020-331"],"related":[],"kind":"vulnerability","state":"published","title":"Undefined behavior in Tensorflow","summary":"In Tensorflow before version 2.4.0, when the `boxes` argument of `tf.image.crop_and_resize` has a very large value, the CPU kernel implementation receives it as a C++ `nan` floating point value. Attempting to operate on this is undefined behavior which later produces a segmentation fault. The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808 and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Tensorflow before version 2.4.0, when the `boxes` argument of `tf.image.crop_and_resize` has a very large value, the CPU kernel implementation receives it as a C++ `nan` floating point value. Attempting to operate on this is undefined behavior which later produces a segmentation fault. The issue is patched in eccb7ec454e6617738554a255d77f08e60ee0808 and TensorFlow 2.4.0 will be released containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen the `boxes` argument of `tf.image.crop_and_resize` has a very large value, the CPU kernel implementation receives it as a C++ `nan` floating point value. Attempting to operate on this is undefined behavior which later produces a segmentation fault.\n\n### Patches\n\nWe have patched the issue in c0319231333f0f16e1cc75ec83660b01fedd4182 and will release TensorFlow 2.4.0 containing the patch. TensorFlow nightly packages after this commit will also have the issue resolved.\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 in #42129","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Tensorflow versiones anteriores a  2.4.0, cuando el argumento \"boxes\" de la función \"tf.image.crop_and_resize\"  presenta un valor muy grande, la implementación del kernel de la CPU lo recibe como un valor de punto flotante \"nan\" de C++.&#xa0;Intentar operar sobre esto es un comportamiento indefinido que luego produce un fallo de segmentación.&#xa0;El problema está parcheado en eccb7ec454e6617738554a255d77f08e60ee0808 y TensorFlow 2.4.0 se publicará con el parche.&#xa0;Los paquetes nocturnos de TensorFlow después de esta confirmación también resolverán el problema","source":"nvd"}],"published":"2020-10-21T20:30:16.000Z","modified":"2026-09-08T08:48:19.888Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/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:H","score":7.5,"rating":"HIGH"},{"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":"HIGH"}],"cwes":["CWE-119"],"affected":[{"ranges":[{"version":"< 2.4.0","status":"affected"}],"vendor":"tensorflow","product":"tensorflow","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.4.0"}],"vendor":"google","product":"tensorflow","cpe":"cpe:2.3:a:google:tensorflow:*:*:*:*:-:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"tensorflow","purl":"pkg:pypi/tensorflow","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","source":"pysec"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"Bitnami","package":"tensorflow","purl":"pkg:bitnami/tensorflow","source":"bitnami"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xwhf-g6j5-j5gc","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/issues/42129","tags":["advisory","exploit","patch","report","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/tensorflow/tensorflow/pull/42143/commits/3ade2efec2e90c6237de32a19680caaa3ebc2845","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15266","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2020-296.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2020-331.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2020-139.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-15266","url":"https://www.cve.org/CVERecord?id=CVE-2020-15266","licence":"CVE Terms of Use","modified":"2024-08-04T13:15:18.938Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xwhf-g6j5-j5gc","url":"https://github.com/advisories/GHSA-xwhf-g6j5-j5gc","licence":"CC-BY-4.0","modified":"2026-07-08T06:00:37.840Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15266","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15266","licence":"Public domain","modified":"2026-06-17T02:56:23.627Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-139","url":"https://osv.dev/vulnerability/PYSEC-2020-139","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:17.667Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-296","url":"https://osv.dev/vulnerability/PYSEC-2020-296","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:17.667Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-331","url":"https://osv.dev/vulnerability/PYSEC-2020-331","licence":"CC-BY-4.0","modified":"2023-12-06T01:00:17.667Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TENSORFLOW-2020-15266","url":"https://osv.dev/vulnerability/BIT-TENSORFLOW-2020-15266","licence":"Apache-2.0","modified":"2026-09-08T08:48:19.888Z"}],"updatedAt":"2026-11-25T22:57:55.414Z","epss":{"score":0.0094,"percentile":0.61946,"date":"2026-12-01T12:00:22.000Z"}}