{"cve":"CVE-2021-29561","nvd":{"published":"2021-05-14T20:15:13.420","modified":"2026-06-17T03:47:54.853","status":"Modified","description":"TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a denial of service by exploiting a `CHECK`-failure coming from `tf.raw_ops.LoadAndRemapMatrix`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/d94227d43aa125ad8b54115c03cece54f6a1977b/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L219-L222) assumes that the `ckpt_path` is always a valid scalar. However, an attacker can send any other tensor as the first argument of `LoadAndRemapMatrix`. This would cause the rank `CHECK` in `scalar<T>()()` to trigger and terminate the process. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.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:N/I:N/A:H","score":5.5},"cwes":["CWE-617"],"references":["https://github.com/tensorflow/tensorflow/commit/77dd114513d7796e1e2b8aece214a380af26fbf4","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gvm4-h8j3-rjrq","https://github.com/tensorflow/tensorflow/commit/77dd114513d7796e1e2b8aece214a380af26fbf4","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gvm4-h8j3-rjrq"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-29561","score":0.00189,"percentile":0.08571,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gvm4-h8j3-rjrq","url":"https://osv.dev/vulnerability/GHSA-gvm4-h8j3-rjrq","summary":"CHECK-fail in `LoadAndRemapMatrix`","modified":"2026-07-08T06:28:53.657257095Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.1.4"],"fixed":["2.1.4"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.2.0 <2.2.3"],"fixed":["2.2.3"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.3.0 <2.3.3"],"fixed":["2.3.3"]},{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":[">=2.4.0 <2.4.2"],"fixed":["2.4.2"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.1.4"],"fixed":["2.1.4"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.2.0 <2.2.3"],"fixed":["2.2.3"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.3.0 <2.3.3"],"fixed":["2.3.3"]},{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":[">=2.4.0 <2.4.2"],"fixed":["2.4.2"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.1.4"],"fixed":["2.1.4"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.2.0 <2.2.3"],"fixed":["2.2.3"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.3.0 <2.3.3"],"fixed":["2.3.3"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.4.0 <2.4.2"],"fixed":["2.4.2"]}]},{"id":"PYSEC-2021-198","url":"https://osv.dev/vulnerability/PYSEC-2021-198","summary":"","modified":"2023-12-06T01:01:06.173181Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.1.4",">=2.2.0 <2.2.3",">=2.3.0 <2.3.3",">=2.4.0 <2.4.2"],"fixed":["2.1.4","2.2.3","2.3.3","2.4.2"]}]},{"id":"PYSEC-2021-489","url":"https://osv.dev/vulnerability/PYSEC-2021-489","summary":"","modified":"2023-12-06T01:01:06.173181Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.1.4",">=2.2.0 <2.2.3",">=2.3.0 <2.3.3",">=2.4.0 <2.4.2"],"fixed":["2.1.4","2.2.3","2.3.3","2.4.2"]}]},{"id":"PYSEC-2021-687","url":"https://osv.dev/vulnerability/PYSEC-2021-687","summary":"","modified":"2023-12-06T01:01:06.173181Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.1.4",">=2.2.0 <2.2.3",">=2.3.0 <2.3.3",">=2.4.0 <2.4.2"],"fixed":["2.1.4","2.2.3","2.3.3","2.4.2"]}]}],"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."]}