{"cve":"CVE-2021-41206","nvd":{"published":"2021-11-05T22:15:08.397","modified":"2026-06-17T04:08:05.660","status":"Modified","description":"TensorFlow is an open source platform for machine learning. In affected versions several TensorFlow operations are missing validation for the shapes of the tensor arguments involved in the call. Depending on the API, this can result in undefined behavior and segfault or `CHECK`-fail related crashes but in some scenarios writes and reads from heap populated arrays are also possible. We have discovered these issues internally via tooling while working on improving/testing GPU op determinism. As such, we don't have reproducers and there will be multiple fixes for these issues. These fixes will be included in TensorFlow 2.7.0. We will also cherrypick these commits on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-354"],"references":["https://github.com/tensorflow/tensorflow/commit/4d74d8a00b07441cba090a02e0dd9ed385145bf4","https://github.com/tensorflow/tensorflow/commit/4dddb2fd0b01cdd196101afbba6518658a2c9e07","https://github.com/tensorflow/tensorflow/commit/579261dcd446385831fe4f7457d802a59685121d","https://github.com/tensorflow/tensorflow/commit/68422b215e618df5ad375bcdc6d2052e9fd3080a","https://github.com/tensorflow/tensorflow/commit/da4aad5946be30e5f049920fa076e1f7ef021261"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:24:39.218183596+00:00"},"epss":{"cve":"CVE-2021-41206","score":0.0018,"percentile":0.07589,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pgcq-h79j-2f69","url":"https://osv.dev/vulnerability/GHSA-pgcq-h79j-2f69","summary":"Incomplete validation of shapes in multiple TF ops","modified":"2026-07-08T06:29:35.127537298Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.6.0 <2.6.1"],"fixed":["2.6.1"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.5.0 <2.5.2"],"fixed":["2.5.2"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.4.4"],"fixed":["2.4.4"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.6.0 <2.6.1"],"fixed":["2.6.1"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.5.0 <2.5.2"],"fixed":["2.5.2"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.4.4"],"fixed":["2.4.4"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.6.0 <2.6.1"],"fixed":["2.6.1"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.5.0 <2.5.2"],"fixed":["2.5.2"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.4.4"],"fixed":["2.4.4"]}]},{"id":"PYSEC-2021-843","url":"https://osv.dev/vulnerability/PYSEC-2021-843","summary":"","modified":"2023-12-06T01:01:34.106187Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.4.4",">=2.5.0 <2.5.2",">=2.6.0 <2.6.1"],"fixed":["2.4.4","2.5.2","2.6.1"]}]},{"id":"PYSEC-2021-845","url":"https://osv.dev/vulnerability/PYSEC-2021-845","summary":"","modified":"2023-12-06T01:01:34.106187Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.4.4",">=2.5.0 <2.5.2",">=2.6.0 <2.6.1"],"fixed":["2.4.4","2.5.2","2.6.1"]}]},{"id":"PYSEC-2021-847","url":"https://osv.dev/vulnerability/PYSEC-2021-847","summary":"","modified":"2023-12-06T01:01:34.106187Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.4.4",">=2.5.0 <2.5.2",">=2.6.0 <2.6.1"],"fixed":["2.4.4","2.5.2","2.6.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}