{"cve":"CVE-2021-29544","nvd":{"published":"2021-05-14T20:15:12.623","modified":"2026-06-17T03:47:52.727","status":"Modified","description":"TensorFlow is an end-to-end open source platform for machine learning. An attacker can trigger a denial of service via a `CHECK`-fail in `tf.raw_ops.QuantizeAndDequantizeV4Grad`. This is because the implementation does not validate the rank of the `input_*` tensors. In turn, this results in the tensors being passes as they are to `QuantizeAndDequantizePerChannelGradientImpl`. However, the `vec<T>` method, requires the rank to 1 and triggers a `CHECK` failure otherwise. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2 as this is the only other affected version.","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-754"],"references":["https://github.com/tensorflow/tensorflow/blob/95078c145b5a7a43ee046144005f733092756ab5/tensorflow/core/kernels/quantize_and_dequantize_op.cc#L162-L163","https://github.com/tensorflow/tensorflow/blob/95078c145b5a7a43ee046144005f733092756ab5/tensorflow/core/kernels/quantize_and_dequantize_op.h#L295-L306","https://github.com/tensorflow/tensorflow/commit/20431e9044cf2ad3c0323c34888b192f3289af6b","https://github.com/tensorflow/tensorflow/security/advisories/GHSA-6g85-3hm8-83f9","https://github.com/tensorflow/tensorflow/commit/20431e9044cf2ad3c0323c34888b192f3289af6b"],"products":["google:tensorflow"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-29544","score":0.0031,"percentile":0.23861,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6g85-3hm8-83f9","url":"https://osv.dev/vulnerability/GHSA-6g85-3hm8-83f9","summary":"CHECK-fail in `QuantizeAndDequantizeV4Grad`","modified":"2026-07-08T06:28:48.815860815Z","packages":[{"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.4.0 <2.4.2"],"fixed":["2.4.2"]},{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":[">=2.4.0 <2.4.2"],"fixed":["2.4.2"]}]},{"id":"PYSEC-2021-181","url":"https://osv.dev/vulnerability/PYSEC-2021-181","summary":"","modified":"2023-12-06T01:01:05.139089Z","packages":[{"ecosystem":"PyPI","name":"tensorflow","purl":"pkg:pypi/tensorflow","ranges":["<2.2.0rc0",">=2.2.0 <2.3.0rc0",">=2.3.0 <2.3.4",">=2.4.0 <2.4.3"],"fixed":["2.2.0rc0","2.3.0rc0","2.3.4","2.4.3"]}]},{"id":"PYSEC-2021-472","url":"https://osv.dev/vulnerability/PYSEC-2021-472","summary":"","modified":"2023-12-06T01:01:05.139089Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-cpu","purl":"pkg:pypi/tensorflow-cpu","ranges":["<2.2.0rc0",">=2.2.0 <2.3.0rc0",">=2.3.0 <2.3.4",">=2.4.0 <2.4.3"],"fixed":["2.2.0rc0","2.3.0rc0","2.3.4","2.4.3"]}]},{"id":"PYSEC-2021-670","url":"https://osv.dev/vulnerability/PYSEC-2021-670","summary":"","modified":"2023-12-06T01:01:05.139089Z","packages":[{"ecosystem":"PyPI","name":"tensorflow-gpu","purl":"pkg:pypi/tensorflow-gpu","ranges":["<2.2.0rc0",">=2.2.0 <2.3.0rc0",">=2.3.0 <2.3.4",">=2.4.0 <2.4.3"],"fixed":["2.2.0rc0","2.3.0rc0","2.3.4","2.4.3"]}]}],"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."]}