CVE-2021-29608

Summary

CVECVE-2021-29608
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-05-14 20:15:00 UTC
Updated2021-07-26 16:23:00 UTC
DescriptionTensorFlow is an end-to-end open source platform for machine learning. Due to lack of validation in `tf.raw_ops.RaggedTensorToTensor`, an attacker can exploit an undefined behavior if input arguments are empty. The implementation(https://github.com/tensorflow/tensorflow/blob/656e7673b14acd7835dc778867f84916c6d1cac2/tensorflow/core/kernels/ragged_tensor_to_tensor_op.cc#L356-L360) only checks that one of the tensors is not empty, but does not check for the other ones. There are multiple `DCHECK` validations to prevent heap OOB, but these are no-op in release builds, hence they don't prevent anything. The fix will be included in TensorFlow 2.5.0. We will also cherrypick these commits 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.

Risk And Classification

Problem Types: CWE-131

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All
Application Google Tensorflow All All All All

References

ReferenceSourceLinkTags
Heap OOB and null pointer dereference in `RaggedTensorToTensor` · Advisory · tensorflow/tensorflow · GitHub CONFIRM github.com
Fix heap OOB / undefined behavior in `RaggedTensorToTensor` · tensorflow/tensorflow@c4d7afb · GitHub MISC github.com
Fix `tf.raw_ops.RaggedTensorToTensor` failing CHECK. · tensorflow/tensorflow@b761c9b · GitHub MISC github.com
Fix `tf.raw_ops.RaggedTensorToTensor` failing CHECK in `tensor.cc`. · tensorflow/tensorflow@f94ef35 · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 982446 Python (pip) Security Update for tensorflow-gpu (GHSA-rgvq-pcvf-hx75)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report